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

12 lines
305 B
Fortran

! RUN: %f18 -E %s 2>&1 | FileCheck %s
! CHECK: if(777.eq.777)then
* /* C comment */ erased from #define
integer, parameter :: KWM = 666
#define KWM 777 /* C comment */
if (KWM .eq. 777) then
print *, 'pp030.F yes'
else
print *, 'pp030.F no: ', KWM
end if
end