[commit: testsuite] master: Test Trac #5922 (108b41a)

Simon Peyton Jones simonpj at microsoft.com
Fri Mar 9 16:07:26 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/108b41a46352917e5e3ea8c10a0314280a6b95ab

>---------------------------------------------------------------

commit 108b41a46352917e5e3ea8c10a0314280a6b95ab
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Mar 9 15:05:04 2012 +0000

    Test Trac #5922

>---------------------------------------------------------------

 tests/deriving/should_fail/T5922.hs     |    3 +++
 tests/deriving/should_fail/T5922.stderr |    4 ++++
 tests/deriving/should_fail/all.T        |    1 +
 3 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/deriving/should_fail/T5922.hs b/tests/deriving/should_fail/T5922.hs
new file mode 100644
index 0000000..c7162ca
--- /dev/null
+++ b/tests/deriving/should_fail/T5922.hs
@@ -0,0 +1,3 @@
+module T5922 where
+
+data Proposition = Proposition deriving (show)
diff --git a/tests/deriving/should_fail/T5922.stderr b/tests/deriving/should_fail/T5922.stderr
new file mode 100644
index 0000000..157cfc5
--- /dev/null
+++ b/tests/deriving/should_fail/T5922.stderr
@@ -0,0 +1,4 @@
+
+T5922.hs:3:42:
+    Illegal deriving item `show'
+    In the data type declaration for `Proposition'
diff --git a/tests/deriving/should_fail/all.T b/tests/deriving/should_fail/all.T
index 7aa69d1..5ddb2bd 100644
--- a/tests/deriving/should_fail/all.T
+++ b/tests/deriving/should_fail/all.T
@@ -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, [''])
 





More information about the Cvs-ghc mailing list