Test Trac #5126
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 20 Apr 2011 16:34:05 +0000 (17:34 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 20 Apr 2011 16:34:05 +0000 (17:34 +0100)
testsuite/tests/ghc-regress/th/T5126.hs [new file with mode: 0644]
testsuite/tests/ghc-regress/th/all.T

diff --git a/testsuite/tests/ghc-regress/th/T5126.hs b/testsuite/tests/ghc-regress/th/T5126.hs
new file mode 100644 (file)
index 0000000..668f82a
--- /dev/null
@@ -0,0 +1,12 @@
+{-# LANGUAGE TemplateHaskell #-}
+module T5126 where
+
+import Language.Haskell.TH
+import Language.Haskell.TH.Syntax
+
+f :: Q [Dec]
+f =
+    [d|
+        x2 :: $(conT ''Int)
+        x2 = undefined
+    |]
index 9b7c082..aa96bc6 100644 (file)
@@ -178,3 +178,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'])
+test('T5126', normal, compile, ['-v0'])