summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/T4169.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/T4169.hs')
-rw-r--r--tests/examples/ghc86/T4169.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/examples/ghc86/T4169.hs b/tests/examples/ghc86/T4169.hs
new file mode 100644
index 0000000..bb23f1c
--- /dev/null
+++ b/tests/examples/ghc86/T4169.hs
@@ -0,0 +1,15 @@
+-- Crashed GHC 6.12
+{-# LANGUAGE TemplateHaskell #-}
+
+module T4165 where
+
+import Language.Haskell.TH
+class Numeric a where
+ fromIntegerNum :: a
+ fromIntegerNum = undefined
+
+ast :: Q [Dec]
+ast = [d|
+ instance Numeric Int
+ |]
+