[commit: testsuite] master: Test Trac #5126 (b4e3b0d)

Simon Peyton Jones simonpj at microsoft.com
Thu Apr 21 10:05:16 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/b4e3b0dd57adc1ea610ef0c431a555df0fa2a572

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

commit b4e3b0dd57adc1ea610ef0c431a555df0fa2a572
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Apr 20 17:34:05 2011 +0100

    Test Trac #5126

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

 tests/ghc-regress/th/T5126.hs |   12 ++++++++++++
 tests/ghc-regress/th/all.T    |    1 +
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/tests/ghc-regress/th/T5126.hs b/tests/ghc-regress/th/T5126.hs
new file mode 100644
index 0000000..668f82a
--- /dev/null
+++ b/tests/ghc-regress/th/T5126.hs
@@ -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
+    |]
diff --git a/tests/ghc-regress/th/all.T b/tests/ghc-regress/th/all.T
index 9b7c082..aa96bc6 100644
--- a/tests/ghc-regress/th/all.T
+++ b/tests/ghc-regress/th/all.T
@@ -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'])





More information about the Cvs-ghc mailing list