xref: /llvm-project/flang/test/Preprocessing/pp024.F (revision 3338ef93b02837edf69abc203e15a42fa55aa1b3)
1! RUN: %flang -E %s 2>&1 | FileCheck %s
2! CHECK: 100   format(3HKWM)
3! CHECK: if (ch .eq. 'KWM') then
4* KWM NOT expanded in Hollerith in FORMAT
5#define KWM 666
6#define HKWM 667
7      character(len=3) :: ch
8 100  format(3HKWM)
9      write(ch, 100)
10      if (ch .eq. 'KWM') then
11        print *, 'pp024.F yes'
12      else
13        print *, 'pp024.F no: ', ch
14      end if
15      end
16