Test #9084 in th/T9084.
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 28 Oct 2014 17:10:11 +0000 (13:10 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Sun, 2 Nov 2014 01:12:55 +0000 (21:12 -0400)
The patch includes errors for a whole host of pragmas. But, these
are generated one at a time, and it doesn't seem like a good idea
to add gobs of test-cases here.

testsuite/tests/th/T9084.hs [new file with mode: 0644]
testsuite/tests/th/T9084.stderr [new file with mode: 0644]
testsuite/tests/th/all.T

diff --git a/testsuite/tests/th/T9084.hs b/testsuite/tests/th/T9084.hs
new file mode 100644 (file)
index 0000000..6b1fe0d
--- /dev/null
@@ -0,0 +1,10 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+module T9084 where
+
+$([d|
+   class C a where
+     meth :: a -> a
+     meth = undefined -- give a (silly) default
+     {-# MINIMAL meth #-}
+   |])
diff --git a/testsuite/tests/th/T9084.stderr b/testsuite/tests/th/T9084.stderr
new file mode 100644 (file)
index 0000000..ad90d1b
--- /dev/null
@@ -0,0 +1,2 @@
+
+T9084.hs:5:3: MINIMAL pragmas not (yet) handled by Template Haskell
index 28ae4fb..d6aaa84 100644 (file)
@@ -333,3 +333,4 @@ test('T9262', normal, compile, ['-v0'])
 test('T9199', normal, compile, ['-v0'])
 test('T9692', normal, compile, ['-v0'])
 test('T8953', normal, compile, ['-v0'])
+test('T9084', normal, compile_fail, ['-v0'])