Debian Codegraph @

gcc/testsuite/cobol.dg/group1/perform-nested-exit.cob

raw
1 *> { dg-do run }
2 *> { dg-output {00 About to start\.\.\.(\n|\r\n|\r)} }
3 *> { dg-output {01 I am a(\n|\r\n|\r)} }
4 *> { dg-output {02 I am b(\n|\r\n|\r)} }
5 *> { dg-output {03 I am c(\n|\r\n|\r)} }
6 *> { dg-output {04 I am d(\n|\r\n|\r)} }
7 *> { dg-output {04 fall through to z(\n|\r\n|\r)} }
8 *> { dg-output {04 I am z(\n|\r\n|\r)} }
9 *> { dg-output {03 back from d through z; fall through to d(\n|\r\n|\r)} }
10 *> { dg-output {03 I am d(\n|\r\n|\r)} }
11 *> { dg-output {03 fall through to z(\n|\r\n|\r)} }
12 *> { dg-output {03 I am z(\n|\r\n|\r)} }
13 *> { dg-output {02 back from c through z; fall through to c(\n|\r\n|\r)} }
14 *> { dg-output {02 I am c(\n|\r\n|\r)} }
15 *> { dg-output {03 I am d(\n|\r\n|\r)} }
16 *> { dg-output {03 fall through to z(\n|\r\n|\r)} }
17 *> { dg-output {03 I am z(\n|\r\n|\r)} }
18 *> { dg-output {02 back from d through z; fall through to d(\n|\r\n|\r)} }
19 *> { dg-output {02 I am d(\n|\r\n|\r)} }
20 *> { dg-output {02 fall through to z(\n|\r\n|\r)} }
21 *> { dg-output {02 I am z(\n|\r\n|\r)} }
22 *> { dg-output {01 back from b through z; fall through to b(\n|\r\n|\r)} }
23 *> { dg-output {01 I am b(\n|\r\n|\r)} }
24 *> { dg-output {02 I am c(\n|\r\n|\r)} }
25 *> { dg-output {03 I am d(\n|\r\n|\r)} }
26 *> { dg-output {03 fall through to z(\n|\r\n|\r)} }
27 *> { dg-output {03 I am z(\n|\r\n|\r)} }
28 *> { dg-output {02 back from d through z; fall through to d(\n|\r\n|\r)} }
29 *> { dg-output {02 I am d(\n|\r\n|\r)} }
30 *> { dg-output {02 fall through to z(\n|\r\n|\r)} }
31 *> { dg-output {02 I am z(\n|\r\n|\r)} }
32 *> { dg-output {01 back from c through z; fall through to c(\n|\r\n|\r)} }
33 *> { dg-output {01 I am c(\n|\r\n|\r)} }
34 *> { dg-output {02 I am d(\n|\r\n|\r)} }
35 *> { dg-output {02 fall through to z(\n|\r\n|\r)} }
36 *> { dg-output {02 I am z(\n|\r\n|\r)} }
37 *> { dg-output {01 back from d through z; fall through to d(\n|\r\n|\r)} }
38 *> { dg-output {01 I am d(\n|\r\n|\r)} }
39 *> { dg-output {01 fall through to z(\n|\r\n|\r)} }
40 *> { dg-output {01 I am z(\n|\r\n|\r)} }
41 *> { dg-output {00 back from a through z} }
42 ID DIVISION.
43 PROGRAM-ID. playpen.
44 DATA DIVISION.
45 WORKING-STORAGE SECTION.
46 01 dummy pic x.
47 01 level pic 99 value 0.
48 PROCEDURE DIVISION.
49 display level " About to start...".
50 add 1 to level
51 perform a through z.
52 subtract 1 from level
53 display level " back from a through z".
54 STOP RUN.
55 a.
56 display level " I am a"
57 add 1 to level
58 perform b through z
59 subtract 1 from level
60 display level
61 " back from b through z; fall through to b".
62 b.
63 display level " I am b"
64 add 1 to level
65 perform c through z
66 subtract 1 from level
67 display level
68 " back from c through z; fall through to c".
69 c.
70 display level " I am c"
71 add 1 to level
72 perform d through z.
73 subtract 1 from level
74 display level
75 " back from d through z; fall through to d".
76 d.
77 display level " I am d"
78 display level
79 " fall through to z".
80 z.
81 display level " I am z".
82 zzz.
83 display level " I am zzz".
84 END PROGRAM playpen.