summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/break026.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/break026.script')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/break026.script23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/break026.script b/testsuite/tests/ghci.debugger/scripts/break026.script
new file mode 100644
index 0000000000..98c6624751
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/break026.script
@@ -0,0 +1,23 @@
+:load break026
+:step foldl (+) 0 [1..5]
+:step
+:step
+:step
+:step
+:step
+:force c
+ -- answer should be 1
+
+:load break026
+:step foldl (+) 0 [1..5]
+:step
+:step
+:step
+:step
+:step
+-- a diversion to single-step the evaluation of c:
+:step c `seq` ()
+:step
+-- end diversion
+c
+ -- answer should be 1 again (not 0)