From b8fc8d117d2246e5e35521917ea65f1f9f35abf4 Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Wed, 3 Sep 1997 23:35:03 +0000
Subject: [PATCH] [project @ 1997-09-03 23:34:59 by sof] new deriving test
 cases

---
 ghc/tests/deriving/should_compile/drv008.hs | 5 +++++
 ghc/tests/deriving/should_compile/drv009.hs | 4 ++++
 ghc/tests/deriving/should_compile/drv010.hs | 4 ++++
 3 files changed, 13 insertions(+)
 create mode 100644 ghc/tests/deriving/should_compile/drv008.hs
 create mode 100644 ghc/tests/deriving/should_compile/drv009.hs
 create mode 100644 ghc/tests/deriving/should_compile/drv010.hs

diff --git a/ghc/tests/deriving/should_compile/drv008.hs b/ghc/tests/deriving/should_compile/drv008.hs
new file mode 100644
index 000000000000..da1391dbc9e4
--- /dev/null
+++ b/ghc/tests/deriving/should_compile/drv008.hs
@@ -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
index 000000000000..e0ff3992d037
--- /dev/null
+++ b/ghc/tests/deriving/should_compile/drv009.hs
@@ -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
index 000000000000..e6814507990f
--- /dev/null
+++ b/ghc/tests/deriving/should_compile/drv010.hs
@@ -0,0 +1,4 @@
+--!!! deriving Enum on d. type with nullary constructors
+module ShouldSucceed where
+
+data AD = A | B | C | D deriving (Enum)
-- 
GitLab