summaryrefslogtreecommitdiff
path: root/flang/test/Preprocessing/pp118.F90
blob: 8ac32ad3dbef6fd56218da38028ce1ea704d636d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: if (KWM2 .eq. 777) then
! 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
        print *, 'pp118.F90 yes'
      else
        print *, 'pp118.F90 no: ', KWM
      end if
      end