summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_raiseErr1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/TH_raiseErr1.hs')
-rw-r--r--tests/examples/ghc86/TH_raiseErr1.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/examples/ghc86/TH_raiseErr1.hs b/tests/examples/ghc86/TH_raiseErr1.hs
new file mode 100644
index 0000000..892fd11
--- /dev/null
+++ b/tests/examples/ghc86/TH_raiseErr1.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE TemplateHaskell #-}
+module TH_raiseErr1 where
+import Language.Haskell.TH
+
+foo = $(do { report True "Error test succeeded"; fail "" })
+