Debian Codegraph @

gcc/testsuite/cobol.dg/group2/Static_CALL_with_ON_EXCEPTION__with_-fno-static-call_.cob

raw
1 *> { dg-do run }
2 *> { dg-options "-fno-static-call -rdynamic" }
3 *> { dg-output-file "group2/Static_CALL_with_ON_EXCEPTION__with_-fno-static-call_.out" }
4
5 IDENTIFICATION DIVISION.
6 PROGRAM-ID. caller.
7 PROCEDURE DIVISION.
8 CALL "callee1" ON EXCEPTION
9 CALL "callee2" ON EXCEPTION
10 DISPLAY "neither callee1 nor callee2 found"
11 END-CALL
12 END-CALL
13 GOBACK.
14 END PROGRAM caller.
15 IDENTIFICATION DIVISION.
16 PROGRAM-ID. callee2.
17 PROCEDURE DIVISION.
18 DISPLAY "this is callee2" NO ADVANCING
19 GOBACK.
20