Test Trac #5922
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 9 Mar 2012 15:05:04 +0000 (15:05 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 9 Mar 2012 15:05:04 +0000 (15:05 +0000)
testsuite/tests/deriving/should_fail/T5922.hs [new file with mode: 0644]
testsuite/tests/deriving/should_fail/T5922.stderr [new file with mode: 0644]
testsuite/tests/deriving/should_fail/all.T

diff --git a/testsuite/tests/deriving/should_fail/T5922.hs b/testsuite/tests/deriving/should_fail/T5922.hs
new file mode 100644 (file)
index 0000000..c7162ca
--- /dev/null
@@ -0,0 +1,3 @@
+module T5922 where
+
+data Proposition = Proposition deriving (show)
diff --git a/testsuite/tests/deriving/should_fail/T5922.stderr b/testsuite/tests/deriving/should_fail/T5922.stderr
new file mode 100644 (file)
index 0000000..157cfc5
--- /dev/null
@@ -0,0 +1,4 @@
+
+T5922.hs:3:42:
+    Illegal deriving item `show'
+    In the data type declaration for `Proposition'
index 7aa69d1..5ddb2bd 100644 (file)
@@ -35,4 +35,5 @@ test('T4528', normal, compile_fail, [''])
 test('T5287', normal, compile_fail, [''])
 test('T5478', normal, compile_fail, [''])
 test('T5686', normal, compile_fail, [''])
+test('T5922', normal, compile_fail, [''])