[commit: ghc] master: Test #1476 in th/T1476 (adb20a0)

git at git.haskell.org git at git.haskell.org
Fri Nov 21 16:18:24 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/adb20a0aec89047af397ef8c3fcde78217e6e5f6/ghc

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

commit adb20a0aec89047af397ef8c3fcde78217e6e5f6
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Mon Nov 3 20:26:14 2014 -0500

    Test #1476 in th/T1476


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

adb20a0aec89047af397ef8c3fcde78217e6e5f6
 testsuite/tests/th/T1476.hs | 10 ++++++++++
 testsuite/tests/th/all.T    |  1 +
 2 files changed, 11 insertions(+)

diff --git a/testsuite/tests/th/T1476.hs b/testsuite/tests/th/T1476.hs
new file mode 100644
index 0000000..7e3a192
--- /dev/null
+++ b/testsuite/tests/th/T1476.hs
@@ -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") |]
diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T
index 1144156..27cde1b 100644
--- a/testsuite/tests/th/all.T
+++ b/testsuite/tests/th/all.T
@@ -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'])



More information about the ghc-commits mailing list