
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.
13 lines
291 B
Fortran
13 lines
291 B
Fortran
! RUN: %flang -E %s 2>&1 | FileCheck %s
|
|
! CHECK: if (77 7.eq. 777) then
|
|
* \ newline allowed in #define
|
|
integer, parameter :: KWM = 666
|
|
#define KWM 77\
|
|
7
|
|
if (KWM .eq. 777) then
|
|
print *, 'pp029.F yes'
|
|
else
|
|
print *, 'pp029.F no: ', KWM
|
|
end if
|
|
end
|