15 lines · plain
1! RUN: %flang -E %s 2>&1 | FileCheck %s2! CHECK: 100 format(3HKWM)3! KWM NOT expanded in Hollerith in FORMAT4#define KWM 6665#define HKWM 6676 character(len=3) :: ch7 100 format(3HKWM)8 write(ch, 100)9 if (ch .eq. 'KWM') then10 print *, 'pp124.F90 yes'11 else12 print *, 'pp124.F90 no: ', ch13 end if14 end15