When running fixed-form source through the compiler under -E, don't aggressively remove space characters, since the parser won't be parsing the result and some tools might need to see the spaces in the -E preprocessed output. Fixes https://github.com/llvm/llvm-project/issues/112279.
16 lines
337 B
Fortran
16 lines
337 B
Fortran
! RUN: %flang -E %s 2>&1 | FileCheck %s
|
|
! CHECK: j = 666WMj= j+ 1WM211
|
|
* use KWM expansion as continuation indicators
|
|
#define KWM 0
|
|
#define KWM2 1
|
|
integer :: j
|
|
j = 666
|
|
KWM j = j + 1
|
|
KWM2 11
|
|
if (j .eq. 777) then
|
|
print *, 'pp041.F yes'
|
|
else
|
|
print *, 'pp041.F no', j
|
|
end if
|
|
end
|