summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/ghci006.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/ghci006.hs')
-rw-r--r--tests/examples/ghc86/ghci006.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/examples/ghc86/ghci006.hs b/tests/examples/ghc86/ghci006.hs
new file mode 100644
index 0000000..aea1307
--- /dev/null
+++ b/tests/examples/ghc86/ghci006.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE RankNTypes #-}
+module Ghci006 where
+
+data Q = forall x . Show x => Q x
+showQ (Q x) = show x
+
+-- associated bug is that at the interpreter command line,
+-- showQ (Q "foo") crashed the interpreter.
+