summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-04-22 16:40:27 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2012-04-22 16:40:27 +0100
commitf8cc68f1226b55358ace5fc9d275bdf556176661 (patch)
treec086abcbc2220fab3e9050d6a74acc7deb47f798 /testsuite/tests/deriving
parentd2e2e1370b1590db9b4ea93ba337c65130b7e346 (diff)
downloadhaskell-f8cc68f1226b55358ace5fc9d275bdf556176661.tar.gz
Test Trac #6031
Diffstat (limited to 'testsuite/tests/deriving')
-rw-r--r--testsuite/tests/deriving/should_compile/T6031.hs7
-rw-r--r--testsuite/tests/deriving/should_compile/T6031a.hs3
-rw-r--r--testsuite/tests/deriving/should_compile/all.T1
3 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T6031.hs b/testsuite/tests/deriving/should_compile/T6031.hs
new file mode 100644
index 0000000000..b1ca4e11de
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T6031.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE StandaloneDeriving #-}
+
+module T6031 where
+
+import T6031a
+
+deriving instance Show Empty
diff --git a/testsuite/tests/deriving/should_compile/T6031a.hs b/testsuite/tests/deriving/should_compile/T6031a.hs
new file mode 100644
index 0000000000..8871b3ac1b
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T6031a.hs
@@ -0,0 +1,3 @@
+module T6031a where
+
+data Empty
diff --git a/testsuite/tests/deriving/should_compile/all.T b/testsuite/tests/deriving/should_compile/all.T
index f6b1ef401e..11a10b629c 100644
--- a/testsuite/tests/deriving/should_compile/all.T
+++ b/testsuite/tests/deriving/should_compile/all.T
@@ -30,3 +30,4 @@ test('T4966', normal, compile, [''])
test('drv-functor1', normal, compile, [''])
test('drv-functor2', normal, compile, [''])
test('drv-foldable-traversable1', normal, compile, [''])
+test('T6031', extra_clean(['T6031a.o', 'T6031a.hi']), multimod_compile, ['T6031', '-v0'])