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(kwm2 .eq. 777) then
|
2019-10-05 06:21:31 +08:00
|
|
|
! KWM rescan with #undef, proving rescan after expansion
|
|
|
|
integer, parameter :: KWM2 = 777, KWM = 667
|
|
|
|
#define KWM2 666
|
|
|
|
#define KWM KWM2
|
|
|
|
#undef KWM2
|
|
|
|
if (KWM .eq. 777) then
|
2020-08-04 01:50:42 +08:00
|
|
|
print *, 'pp118.F90 yes'
|
2019-10-05 06:21:31 +08:00
|
|
|
else
|
2020-08-04 01:50:42 +08:00
|
|
|
print *, 'pp118.F90 no: ', KWM
|
2019-10-05 06:21:31 +08:00
|
|
|
end if
|
|
|
|
end
|