peter klausler ba4cc3b380 [flang] Don't completely left-justify fixed-form tokenization
If the label field is empty, and macro replacement occurs,
the rescanned text might be misclassified as a comment card
if it happens to begin with a C or a D.  Insert a leading
space into these otherwise empty label fields.

Fixes https://bugs.llvm.org/show_bug.cgi?id=47173
2020-08-25 10:53:56 -07:00

13 lines
285 B
Fortran

! RUN: %f18 -E %s 2>&1 | FileCheck %s
! CHECK: if(777.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