llvm-project/flang/test/Preprocessing/pp008.F

14 lines
332 B
Fortran

! RUN: %f18 -E %s 2>&1 | FileCheck %s
! CHECK: res=kwm
* KWM with spaces in name at invocation NOT replaced
integer, parameter :: KWM = 777
#define KWM 666
integer :: res
res = K W M
if (res .eq. 777) then
print *, 'pp008.F yes'
else
print *, 'pp008.F no: ', res
end if
end