summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/break026.script
blob: b2dd79ef97588195c92f4bc1b2d2667eaf84c20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
:load break026
:step foldl (+) 0 [1::Integer .. 5]
:step
:step
:step
:step
:step
:force c
        -- answer should be 1

:load break026
:step foldl (+) 0 [1::Integer .. 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)