summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_run/drvrun008.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_run/drvrun008.hs')
-rw-r--r--testsuite/tests/deriving/should_run/drvrun008.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_run/drvrun008.hs b/testsuite/tests/deriving/should_run/drvrun008.hs
new file mode 100644
index 0000000000..7fe77992ed
--- /dev/null
+++ b/testsuite/tests/deriving/should_run/drvrun008.hs
@@ -0,0 +1,8 @@
+-- !!! Check that -funbox-strict-fields doesn't mess up deriving (can't be in an options pragma, it's in the Makefile)
+-- !!! (it did in 4.04)
+
+module Main( main ) where
+
+data X = X !Int deriving Eq
+
+main = putStrLn (show (X 2 == X 2))