Test #1476 in th/T1476
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 4 Nov 2014 01:26:14 +0000 (20:26 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Fri, 21 Nov 2014 16:15:46 +0000 (11:15 -0500)
testsuite/tests/th/T1476.hs [new file with mode: 0644]
testsuite/tests/th/all.T

diff --git a/testsuite/tests/th/T1476.hs b/testsuite/tests/th/T1476.hs
new file mode 100644 (file)
index 0000000..7e3a192
--- /dev/null
@@ -0,0 +1,10 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+module T1476 where
+
+import Language.Haskell.TH
+
+foo $( return $ VarP $ mkName "x" ) = x
+bar $( [p| x |] ) = x
+
+baz = [| \ $( return $ VarP $ mkName "x" ) -> $(dyn "x") |]
index 1144156..27cde1b 100644 (file)
@@ -344,3 +344,4 @@ test('T8100', normal, compile, ['-v0'])
 test('T9064', normal, compile, ['-v0'])
 test('T9209', normal, compile_fail, ['-v0'])
 test('T7484', normal, compile_fail, ['-v0'])
+test('T1476', expect_broken(1476), compile, ['-v0'])