bolt/deps/llvm-18.1.8/flang/test/Preprocessing/pp023.F

15 lines
345 B
FortranFixed
Raw Normal View History

2025-02-14 19:21:04 +01:00
! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: ch = 3HKWM
! CHECK: if (ch .eq. 'KWM') then
* KWM NOT expanded in 9HHOLLERITH literal
#define KWM 666
#define HKWM 667
character(len=3) :: ch
ch = 3HKWM
if (ch .eq. 'KWM') then
print *, 'pp023.F yes'
else
print *, 'pp023.F no: ', ch
end if
end