summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/print024.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/print024.script')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/print024.script10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/print024.script b/testsuite/tests/ghci.debugger/scripts/print024.script
new file mode 100644
index 0000000000..d617ecaaa0
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/print024.script
@@ -0,0 +1,10 @@
+-- stg_ap_rep exception after using :print with newtypes
+
+:set -XExistentialQuantification -XDeriveDataTypeable -XGeneralizedNewtypeDeriving
+:l ../Test
+
+let a = MkT 1
+seq a ()
+:p a
+a
+-- Bang! "internal error: stg_ap_p_ret", triggered by the evaluation of a