From 0534f09fa74f0cc3934cdf8313e98ebb7424b822 Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Fri, 9 Mar 2012 15:05:04 +0000 Subject: [PATCH] Test Trac #5922 --- testsuite/tests/deriving/should_fail/T5922.hs | 3 +++ testsuite/tests/deriving/should_fail/T5922.stderr | 4 ++++ testsuite/tests/deriving/should_fail/all.T | 1 + 3 files changed, 8 insertions(+) create mode 100644 testsuite/tests/deriving/should_fail/T5922.hs create mode 100644 testsuite/tests/deriving/should_fail/T5922.stderr diff --git a/testsuite/tests/deriving/should_fail/T5922.hs b/testsuite/tests/deriving/should_fail/T5922.hs new file mode 100644 index 0000000000..c7162caf96 --- /dev/null +++ b/testsuite/tests/deriving/should_fail/T5922.hs @@ -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 index 0000000000..157cfc57ad --- /dev/null +++ b/testsuite/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/testsuite/tests/deriving/should_fail/all.T b/testsuite/tests/deriving/should_fail/all.T index 7aa69d1192..5ddb2bd373 100644 --- a/testsuite/tests/deriving/should_fail/all.T +++ b/testsuite/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, ['']) -- GitLab