[project @ 1999-12-07 15:48:02 by simonpj]
authorsimonpj <unknown>
Tue, 7 Dec 1999 15:48:02 +0000 (15:48 +0000)
committersimonpj <unknown>
Tue, 7 Dec 1999 15:48:02 +0000 (15:48 +0000)
Add drvrun008

ghc/tests/deriving/should_run/drvrun008.hs [new file with mode: 0644]
ghc/tests/deriving/should_run/drvrun008.stdout [new file with mode: 0644]

diff --git a/ghc/tests/deriving/should_run/drvrun008.hs b/ghc/tests/deriving/should_run/drvrun008.hs
new file mode 100644 (file)
index 0000000..5a857d0
--- /dev/null
@@ -0,0 +1,9 @@
+{-# OPTIONS -funbox-strict-fields #-}
+-- !!! Check that -funbox-strict-fields doesn't mess up deriving
+-- !!!  (it did in 4.04)
+
+module Main( main ) where
+
+data X = X !Int deriving Eq
+
+main = putStrLn (show (X 2 == X 2))
diff --git a/ghc/tests/deriving/should_run/drvrun008.stdout b/ghc/tests/deriving/should_run/drvrun008.stdout
new file mode 100644 (file)
index 0000000..e69de29