summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/break024.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/break024.script')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/break024.script16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/break024.script b/testsuite/tests/ghci.debugger/scripts/break024.script
new file mode 100644
index 0000000000..7efb396788
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/break024.script
@@ -0,0 +1,16 @@
+-- Test -fbreak-on-exception and -fbreak-on-error
+:set -XDeriveDataTypeable
+:l break024
+:set -fbreak-on-error
+exception_caught
+exception_uncaught
+:force _exception
+:co
+:set -fno-break-on-error
+:set -fbreak-on-exception
+exception_uncaught
+:force _exception
+:co
+exception_caught
+:force _exception
+:co