summaryrefslogtreecommitdiff
path: root/testsuite/tests/th
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th')
-rw-r--r--testsuite/tests/th/T19377.hs10
-rw-r--r--testsuite/tests/th/all.T1
2 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/th/T19377.hs b/testsuite/tests/th/T19377.hs
new file mode 100644
index 0000000000..e27149ccfe
--- /dev/null
+++ b/testsuite/tests/th/T19377.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE TemplateHaskell #-}
+module T19377 where
+
+$([d| x :: Int
+ x = 42
+ {-# ANN x "blah" #-}
+
+ data Y
+ {-# ANN type Y "yargh" #-}
+ |])
diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T
index 3dc58ea302..866bbdef31 100644
--- a/testsuite/tests/th/all.T
+++ b/testsuite/tests/th/all.T
@@ -518,3 +518,4 @@ test('T18388', normal, compile, [''])
test('T18612', normal, compile, [''])
test('T18740c', normal, compile_fail, [''])
test('T18740d', normal, compile_fail, [''])
+test('T19377', normal, compile, [''])