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
13 lines
285 B
Fortran
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
|