summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T3966.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T3966.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/T3966.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T3966.hs b/testsuite/tests/typecheck/should_fail/T3966.hs
new file mode 100644
index 0000000000..7b1184c710
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T3966.hs
@@ -0,0 +1,6 @@
+{-# OPTIONS_GHC -Werror -O #-}
+-- Add -O so the UNPACK has some effect
+
+module T3966 where
+
+data Foo a b = Foo {-# UNPACK #-} !(a -> b)