bolt/deps/llvm-18.1.8/flang/test/Preprocessing/pp031.F

13 lines
395 B
FortranFixed
Raw Normal View History

2025-02-14 19:21:04 +01:00
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if (777//Ccomment.eq.777)then
! CHECK: print *, 'pp031.F no: ', 777//Ccomment
* // 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
print *, 'pp031.F no: ', KWM
end if
end