Debian Codegraph @

flang/test/Preprocessing/fd-lines-as.f90

raw
1 ! Ensure arguments -fd-lines-as-comments and -fd-lines-as-code display the correct output with -E.
2
3 !--------------------------
4 ! Default behavior is equivalent as -fd-lines-as-comments
5 !--------------------------
6 ! RUN: %flang -E -ffixed-form %s 2>&1 | FileCheck %s --check-prefix=COMMENT
7 ! RUN: %flang -E -ffixed-form -fd-lines-as-comments %s 2>&1 | FileCheck %s --check-prefix=COMMENT
8 ! RUN: %flang -E -ffixed-form -fd-lines-as-code %s 2>&1 | FileCheck %s --check-prefix=CODE
9
10 program FixedForm
11 d end
12 D end
13 end
14
15 ! COMMENT: program FixedForm
16 ! COMMENT: end
17 ! COMMENT-NOT: end
18 ! COMMENT-NOT: end
19
20 ! CODE: program FixedForm
21 ! CODE: end
22 ! CODE: end
23 ! CODE: end