[project @ 1997-09-03 23:34:59 by sof]
authorsof <unknown>
Wed, 3 Sep 1997 23:35:03 +0000 (23:35 +0000)
committersof <unknown>
Wed, 3 Sep 1997 23:35:03 +0000 (23:35 +0000)
new deriving test cases

ghc/tests/deriving/should_compile/drv008.hs [new file with mode: 0644]
ghc/tests/deriving/should_compile/drv009.hs [new file with mode: 0644]
ghc/tests/deriving/should_compile/drv010.hs [new file with mode: 0644]

diff --git a/ghc/tests/deriving/should_compile/drv008.hs b/ghc/tests/deriving/should_compile/drv008.hs
new file mode 100644 (file)
index 0000000..da1391d
--- /dev/null
@@ -0,0 +1,5 @@
+--!!! deriving Ix on d. type with nullary constructors
+module ShouldSucceed where
+
+data AD = A | B | C | D deriving (Show, Ord, Eq, Ix)
+
diff --git a/ghc/tests/deriving/should_compile/drv009.hs b/ghc/tests/deriving/should_compile/drv009.hs
new file mode 100644 (file)
index 0000000..e0ff399
--- /dev/null
@@ -0,0 +1,4 @@
+--!!! deriving Ix on d. type with one constructor
+module ShouldSucceed where
+
+data Pair a b = Pair a b deriving (Show, Ord, Eq, Ix)
diff --git a/ghc/tests/deriving/should_compile/drv010.hs b/ghc/tests/deriving/should_compile/drv010.hs
new file mode 100644 (file)
index 0000000..e681450
--- /dev/null
@@ -0,0 +1,4 @@
+--!!! deriving Enum on d. type with nullary constructors
+module ShouldSucceed where
+
+data AD = A | B | C | D deriving (Enum)