16 lines · plain
1! RUN: %flang -E %s 2>&1 | FileCheck %s2! CHECK: 100 format(3HKWM)3! CHECK: if (ch .eq. 'KWM') then4* KWM NOT expanded in Hollerith in FORMAT5#define KWM 6666#define HKWM 6677 character(len=3) :: ch8 100 format(3HKWM)9 write(ch, 100)10 if (ch .eq. 'KWM') then11 print *, 'pp024.F yes'12 else13 print *, 'pp024.F no: ', ch14 end if15 end16