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

12 lines
307 B
Fortran

! RUN: %flang -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