Files
clang-p2996/flang/test/Preprocessing/pp044.F
Peter Klausler 82d7a6b2bb [flang] Diagnose fixed form statement that begins with continuation line
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
2023-01-28 10:16:43 -08:00

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