summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/break026.script
blob: 98c662475196cffbb67080810221afd17b8a57b0 (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..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)