llvm-project/flang/test/Preprocessing/pp107.F90

15 lines
369 B
Fortran

! RUN: %f18 -E %s 2>&1 | FileCheck %s
! CHECK: res = kwm
! KWM call name split across continuation, no leading &, with & ! comment
integer, parameter :: KWM = 666
#define KWM 777
integer :: res
res = KW& ! comment
M
if (res .eq. 777) then
print *, 'pp107.F90 yes'
else
print *, 'pp107.F90 no: ', res
end if
end