2021-01-25 20:07:17 +08:00
|
|
|
! RUN: %flang -E %s 2>&1 | FileCheck %s
|
2020-08-04 01:50:42 +08:00
|
|
|
! CHECK: if(777//ccomment.eq.777)then
|
|
|
|
! CHECK: print*,'pp031.F no: ',777//ccomment
|
2019-10-05 06:21:31 +08:00
|
|
|
* // C++ comment NOT erased from #define
|
|
|
|
integer, parameter :: KWM = 666
|
|
|
|
#define KWM 777 // C comment
|
|
|
|
if (KWM .eq. 777) then
|
|
|
|
print *, 'pp031.F FAIL (should not have compiled)'
|
|
|
|
else
|
2020-08-04 01:50:42 +08:00
|
|
|
print *, 'pp031.F no: ', KWM
|
2019-10-05 06:21:31 +08:00
|
|
|
end if
|
|
|
|
end
|