[commit: testsuite] master: Test Trac #8506 (8a4d858)
git at git.haskell.org
git at git.haskell.org
Wed Nov 6 10:40:29 UTC 2013
Repository : ssh://git@git.haskell.org/testsuite
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8a4d858e9df67c35c5f59e2f6382ece02fc4c214/testsuite
>---------------------------------------------------------------
commit 8a4d858e9df67c35c5f59e2f6382ece02fc4c214
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Wed Nov 6 09:36:28 2013 +0000
Test Trac #8506
>---------------------------------------------------------------
8a4d858e9df67c35c5f59e2f6382ece02fc4c214
tests/parser/should_fail/T8506.hs | 4 ++++
tests/parser/should_fail/T8506.stderr | 6 ++++++
tests/parser/should_fail/all.T | 1 +
3 files changed, 11 insertions(+)
diff --git a/tests/parser/should_fail/T8506.hs b/tests/parser/should_fail/T8506.hs
new file mode 100644
index 0000000..6603f56
--- /dev/null
+++ b/tests/parser/should_fail/T8506.hs
@@ -0,0 +1,4 @@
+module T8506 where
+
+class Shapable Int where
+
diff --git a/tests/parser/should_fail/T8506.stderr b/tests/parser/should_fail/T8506.stderr
new file mode 100644
index 0000000..bfccfaf
--- /dev/null
+++ b/tests/parser/should_fail/T8506.stderr
@@ -0,0 +1,6 @@
+
+T8506.hs:3:16:
+ Unexpected type ‛Int’
+ In the class declaration for ‛Shapable’
+ A class declaration should have form
+ class Shapable a b c where ...
diff --git a/tests/parser/should_fail/all.T b/tests/parser/should_fail/all.T
index 7e0194a..45c471e 100644
--- a/tests/parser/should_fail/all.T
+++ b/tests/parser/should_fail/all.T
@@ -82,3 +82,4 @@ test('T7848', normal, compile_fail, ['-dppr-user-length=100'])
test('ExportCommaComma', normal, compile_fail, [''])
test('T8430', literate, compile_fail, [''])
test('T8431', [timeout_multiplier(0.05)], compile_fail, ['-XAlternativeLayoutRule'])
+test('T8506', normal, compile_fail, [''])
More information about the ghc-commits
mailing list