flang/test/Preprocessing/pp037.F
raw| 1 | ! RUN: %flang -E %s 2>&1 | FileCheck %s |
| 2 | ! CHECK: if (7777 .eq. 777) then |
| 3 | ! CHECK: print *, 'pp037.F no: ', 7777 |
| 4 | * fixed-form clipping NOT applied to #define |
| 5 | integer, parameter :: KWM = 666 |
| 6 | * 1 2 3 4 5 6 7 |
| 7 | *234567890123456789012345678901234567890123456789012345678901234567890123 |
| 8 | #define KWM 7777 |
| 9 | if (KWM .eq. 777) then |
| 10 | print *, 'pp037.F yes' |
| 11 | else |
| 12 | print *, 'pp037.F no: ', KWM |
| 13 | end if |
| 14 | end |