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

14 lines
357 B
FortranFixed
Raw Normal View History

2025-02-14 19:21:04 +01:00
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if (KWM2 .eq. 777) then
* KLM rescan with #undef (so rescan is after expansion)
integer, parameter :: KWM2 = 777, KWM = 667
#define KWM2 666
#define KWM KWM2
#undef KWM2
if (KWM .eq. 777) then
print *, 'pp018.F yes'
else
print *, 'pp018.F no: ', KWM
end if
end