Test Trac #4949
authorsimonpj <simonpj@microsoft.com>
Wed, 9 Feb 2011 17:21:24 +0000 (17:21 +0000)
committersimonpj <simonpj@microsoft.com>
Wed, 9 Feb 2011 17:21:24 +0000 (17:21 +0000)
testsuite/tests/ghc-regress/th/T4949.hs [new file with mode: 0644]
testsuite/tests/ghc-regress/th/all.T

diff --git a/testsuite/tests/ghc-regress/th/T4949.hs b/testsuite/tests/ghc-regress/th/T4949.hs
new file mode 100644 (file)
index 0000000..a1cb8b4
--- /dev/null
@@ -0,0 +1,8 @@
+{-# LANGUAGE TemplateHaskell #-}
+module Foo where
+
+import Language.Haskell.TH
+
+x :: Int
+x = let args = [| show $(varE (mkName "x")) |]
+    in undefined
index 4c121a1..c6f88aa 100644 (file)
@@ -174,3 +174,4 @@ test('T1835', normal, compile_and_run, ['-v0'])
 
 test('TH_viewPatPrint', normal, compile_and_run, [''])
 test('T4436', normal, compile, ['-v0 -ddump-splices'])
+test('T4949', normal, compile, ['-v0'])