Debian Codegraph @

gcc/testsuite/cobol.dg/group2/Indicators_______________-____D__.cob

raw
1 *> { dg-do run }
2 *> { dg-options "-ffixed-form" }
3 *> { dg-output-file "group2/Indicators_______________-____D__.out" }
4
5 IDENTIFICATION DIVISION.
6 PROGRAM-ID. FF2.
7 *Asterisk in correct column
8 /
9 PROCEDURE DIVISION.
10 DISPLAY "gekk
11 -"os rule".
12 DISPLAY "gerb
13 * ISO says blank and comment lines do not interfere with
14 * literal continuation
15
16 -"ils don't rule".
17 * "D" is a deprecated feature of COBOL dropped from
18 * the ISO-IEC standard. Lines with "D" in the indicator
19 * column were enabled when OBJECT COMPUTER contained
20 * "WITH DEBUG MODE". Otherwise they were treated as
21 * comments. This behavior is a "vendor extension" to
22 * the current standard but allows old code to be used
23 * as it was prior to the deprecation.
24 D DISPLAY 'Should not display'.
25 EXIT PROGRAM.
26