summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/dynbrk001.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/dynbrk001.script')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/dynbrk001.script22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/dynbrk001.script b/testsuite/tests/ghci.debugger/scripts/dynbrk001.script
new file mode 100644
index 0000000000..95c1ab6118
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/dynbrk001.script
@@ -0,0 +1,22 @@
+
+:set -fprint-explicit-foralls
+
+:l ../QSort
+
+:delete 1
+-- Illegal: empty breakpoint list
+
+:break NonModule 1
+-- Illegal: I don't know this module
+
+:break QSort 1 1
+-- Error: No breakpoint here
+
+:show breaks
+-- Show an empty list
+
+qsort [8, 4, 42, 16, 15, 23]
+-- Should run normally
+
+-- Testing that ghci commands work normally
+:i map