summaryrefslogtreecommitdiff
path: root/testsuite/tests/quotes/TTH_top_splice.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/quotes/TTH_top_splice.hs')
-rw-r--r--testsuite/tests/quotes/TTH_top_splice.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/quotes/TTH_top_splice.hs b/testsuite/tests/quotes/TTH_top_splice.hs
new file mode 100644
index 0000000000..53b85434de
--- /dev/null
+++ b/testsuite/tests/quotes/TTH_top_splice.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TemplateHaskellQuotes #-}
+module TTH_top_splice where
+
+-- Should be a compile time error as TemplateHaskell is not enabled.
+
+qux = $$([|| 1 ||])
+
+