Debian Codegraph @

flang/test/Preprocessing/bug136845.F

raw
1 !RUN: %flang_fc1 -E %s | FileCheck --check-prefix=PREPRO %s
2 !RUN: %flang_fc1 -fdebug-unparse %s | FileCheck --check-prefix=NORMAL %s
3 !RUN: %flang_fc1 -fopenmp -fdebug-unparse %s | FileCheck --check-prefix=OMP %s
4
5 c$ !
6
7 C$
8 continue
9
10 k=0 w
11 k=0
12 c$ 0 x
13 c$ 1 y
14 c$ 2 k= z
15 c$ ! A
16 c$ !1 B
17 print *,k
18 *$1 continue
19 end
20
21 !PREPRO:!$ &
22 !PREPRO: continue
23 !PREPRO: k=0
24 !PREPRO: k=0
25 !PREPRO:!$
26 !PREPRO:!$ &
27 !PREPRO:!$ &k=
28 !PREPRO:!$ &
29 !PREPRO:!$ &1
30 !PREPRO: print *,k
31 !PREPRO:!$ 1 continue
32 !PREPRO: end
33
34 !NORMAL: k=0_4
35 !NORMAL: k=0_4
36 !NORMAL: PRINT *, k
37 !NORMAL:END PROGRAM
38
39 !OMP: CONTINUE
40 !OMP: k=0_4
41 !OMP: k=0_4
42 !OMP: k=1_4
43 !OMP: PRINT *, k
44 !OMP: 1 CONTINUE
45 !OMP:END PROGRAM