From 59d3948f02b8a50788f2049014b302bb5b88c5a7 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 14 Dec 2015 15:14:36 +0100 Subject: Add testcase for #11216 --- testsuite/tests/rebindable/T11216.hs | 6 ++++++ testsuite/tests/rebindable/all.T | 1 + 2 files changed, 7 insertions(+) create mode 100644 testsuite/tests/rebindable/T11216.hs diff --git a/testsuite/tests/rebindable/T11216.hs b/testsuite/tests/rebindable/T11216.hs new file mode 100644 index 0000000000..e05feb9e85 --- /dev/null +++ b/testsuite/tests/rebindable/T11216.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE RebindableSyntax #-} + +module Bug where + +foo :: (a, b) -> () +foo x | (_,_) <- x = () diff --git a/testsuite/tests/rebindable/all.T b/testsuite/tests/rebindable/all.T index b00e721ffe..3ca873e284 100644 --- a/testsuite/tests/rebindable/all.T +++ b/testsuite/tests/rebindable/all.T @@ -31,3 +31,4 @@ test('T4851', normal, compile, ['']) test('T5908', normal, compile, ['']) test('T10112', normal, compile, ['']) +test('T11216', [expect_broken(11216)], compile, ['']) \ No newline at end of file -- cgit v1.2.1