summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail203a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail203a.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail203a.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail203a.hs b/testsuite/tests/typecheck/should_fail/tcfail203a.hs
new file mode 100644
index 0000000000..fd5ccaefbb
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail203a.hs
@@ -0,0 +1,10 @@
+-- trac #2806
+
+{-# LANGUAGE MagicHash, UnboxedTuples, BangPatterns #-}
+
+module Foo where
+
+import GHC.Base
+
+fail10 = 'a'
+ where !(b, ~(c, (I# x))) = (True, (False, 5))