summaryrefslogtreecommitdiff
path: root/flang/test/Preprocessing/pp124.F90
blob: 1bb48c2d3ac14fe309d14d28cb2fa7799da3dd36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: 100 format(3HKWM)
! KWM NOT expanded in Hollerith in FORMAT
#define KWM 666
#define HKWM 667
      character(len=3) :: ch
 100  format(3HKWM)
      write(ch, 100)
      if (ch .eq. 'KWM') then
        print *, 'pp124.F90 yes'
      else
        print *, 'pp124.F90 no: ', ch
      end if
      end