Debian Codegraph @

gcc/testsuite/cobol.dg/group2/CONTINUE_AFTER_1_SECONDS.cob

raw
1 *> { dg-do run }
2 *> { dg-output-file "group2/CONTINUE_AFTER_1_SECONDS.out" }
3
4 program-id. prog.
5 data division.
6 working-storage section.
7 01 tod pic x(64).
8 01 tstart pic 9999.
9 01 tend pic 9999.
10 01 tspan pic 9999.
11 procedure division.
12 accept tod from time
13 move tod(5:) to tstart
14 continue after 1.0 seconds.
15 accept tod from time
16 move tod(5:) to tend
17 if tend < tstart
18 compute tend = tend + 6000
19 end-if
20 compute tspan = tend - tstart
21 if tspan >= 75 and tspan <= 125
22 display "Looks good"
23 else
24 display "Looks bad! " tstart space tend space tspan
25 end-if
26 goback.
27 end program prog.
28