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

17 lines
358 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 .eq. 777) then
! CHECK: print *, 'pp035.F no: ', 777
* #if 2 .LT. 3 works
integer, parameter :: KWM = 666
#if 2 .LT. 3
#define KWM 777
#else
#define KWM 667
#endif
if (KWM .eq. 777) then
print *, 'pp035.F yes'
else
print *, 'pp035.F no: ', KWM
end if
end