[commit: ghc] wip/rae: Test #1476 in th/T1476 (225131d)

git at git.haskell.org git at git.haskell.org
Tue Nov 4 01:29:48 UTC 2014


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

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/225131dcc2fe82616ba983f98e1af883b15113f5/ghc

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

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

    Test #1476 in th/T1476


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

225131dcc2fe82616ba983f98e1af883b15113f5
 testsuite/tests/th/T1476.hs | 8 ++++++++
 testsuite/tests/th/all.T    | 1 +
 2 files changed, 9 insertions(+)

diff --git a/testsuite/tests/th/T1476.hs b/testsuite/tests/th/T1476.hs
new file mode 100644
index 0000000..2554d9e
--- /dev/null
+++ b/testsuite/tests/th/T1476.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+module T1476 where
+
+import Language.Haskell.TH
+
+foo $( return $ VarP $ mkName "x" ) = x
+bar $( [p| x |] ) = x
diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T
index 4fd131a..c9c0cbe 100644
--- a/testsuite/tests/th/all.T
+++ b/testsuite/tests/th/all.T
@@ -338,3 +338,4 @@ test('T9738', normal, compile, ['-v0'])
 test('T9066', 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