A fixed form continuation line should not be the first line of a statement; emit a warning if it looks like one is so that the programmer can look for a missing card. Differential Revision: https://reviews.llvm.org/D142763
16 lines
423 B
Fortran
16 lines
423 B
Fortran
! RUN: %flang -E %s 2>&1 | FileCheck %s
|
|
! CHECK-NOT:z = 111
|
|
! CHECK:warning: Statement should not begin with a continuation line
|
|
! CHECK:j=111+444
|
|
* #define directive amid continuations.
|
|
integer, parameter :: KWM = 222
|
|
integer, parameter :: z = KWM
|
|
#define KWM 111
|
|
,j=KWM+444
|
|
if (z .EQ. 222 .AND. j .EQ. 555) then
|
|
print *, 'yes'
|
|
else
|
|
print *, 'no', z, _4
|
|
end if
|
|
end
|