Debian Codegraph @

gcc/testsuite/cobol.dg/group2/FUNCTION_MODULE-NAME.cob

raw
1 *> { dg-do run }
2 *> { dg-output-file "group2/FUNCTION_MODULE-NAME.out" }
3
4 identification division.
5 program-id. level-1.
6 data division.
7 working-storage section.
8 procedure division.
9 display "From level-1:"
10 perform reportt.
11 call "level-2"
12 goback.
13 reportt.
14 display " " "top-level: " """" function module-name(top-level) """"
15 display " " "current: " """" function module-name(current) """"
16 display " " "activating: " """" function module-name(activating) """"
17 display " " "nested: " """" function module-name(nested) """"
18 display " " "stack: " """" function module-name(stack) """"
19 continue.
20 end program level-1.
21
22 identification division.
23 program-id. level-2.
24 data division.
25 working-storage section.
26 procedure division.
27 display "From level-2:"
28 perform reportt.
29 call "level-3"
30 goback.
31 reportt.
32 display " " "top-level: " """" function module-name(top-level) """"
33 display " " "current: " """" function module-name(current) """"
34 display " " "activating: " """" function module-name(activating) """"
35 display " " "nested: " """" function module-name(nested) """"
36 display " " "stack: " """" function module-name(stack) """"
37 continue.
38 end program level-2.
39
40 identification division.
41 program-id. level-3.
42 data division.
43 working-storage section.
44 procedure division.
45 display "From level-3:"
46 perform reportt.
47 call "level-3a"
48 goback.
49 reportt.
50 display " " "top-level: " """" function module-name(top-level) """"
51 display " " "current: " """" function module-name(current) """"
52 display " " "activating: " """" function module-name(activating) """"
53 display " " "nested: " """" function module-name(nested) """"
54 display " " "stack: " """" function module-name(stack) """"
55 continue.
56
57 identification division.
58 program-id. level-3a.
59 data division.
60 working-storage section.
61 procedure division.
62 display "From level-3a:"
63 perform reportt.
64 call "level-3b"
65 goback.
66 reportt.
67 display " " "top-level: " """" function module-name(top-level) """"
68 display " " "current: " """" function module-name(current) """"
69 display " " "activating: " """" function module-name(activating) """"
70 display " " "nested: " """" function module-name(nested) """"
71 display " " "stack: " """" function module-name(stack) """"
72 continue.
73
74 identification division.
75 program-id. level-3b.
76 data division.
77 working-storage section.
78 procedure division.
79 display "From level-3b:"
80 perform reportt.
81 call "level-3c"
82 goback.
83 reportt.
84 display " " "top-level: " """" function module-name(top-level) """"
85 display " " "current: " """" function module-name(current) """"
86 display " " "activating: " """" function module-name(activating) """"
87 display " " "nested: " """" function module-name(nested) """"
88 display " " "stack: " """" function module-name(stack) """"
89 continue.
90
91 identification division.
92 program-id. level-3c.
93 data division.
94 working-storage section.
95 procedure division.
96 display "From level-3c:"
97 perform reportt.
98 goback.
99 reportt.
100 display " " "top-level: " """" function module-name(top-level) """"
101 display " " "current: " """" function module-name(current) """"
102 display " " "activating: " """" function module-name(activating) """"
103 display " " "nested: " """" function module-name(nested) """"
104 display " " "stack: " """" function module-name(stack) """"
105 continue.
106 end program level-3c.
107 end program level-3b.
108 end program level-3a.
109 end program level-3.
110