summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/print018.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/print018.script')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/print018.script15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/print018.script b/testsuite/tests/ghci.debugger/scripts/print018.script
new file mode 100644
index 0000000000..695dfca291
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/print018.script
@@ -0,0 +1,15 @@
+-- Test type reconstruction of Constants
+-- Found by Bernie Pope
+
+:set -XExistentialQuantification -XDeriveDataTypeable -XGeneralizedNewtypeDeriving
+:l ../Test
+
+:break poly
+poly Unary
+:step
+:p x
+:t x
+seq x ()
+:p x
+:t x
+x