Rather than admit complete confusion with a "FAIL" message when parsing runs into the end of the source file unexpectedly, deal better with missing or garbled END statements through the use of `consumedAllInput` in end-of-line and end-of-statement parsers and error recovery. Adds a new test (the original motivation) and updates the expected results in two extant tests that were failing before.
23 lines
428 B
Fortran
23 lines
428 B
Fortran
! RUN: not %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
! Test ignoring @PROCESS directive in fixed source form
|
|
|
|
@process opt(3)
|
|
@process opt(0)
|
|
@process
|
|
@processopt(3)
|
|
subroutine f()
|
|
c@process
|
|
end
|
|
|
|
!CHECK: Character in fixed-form label field must be a digit
|
|
@
|
|
|
|
!CHECK: Character in fixed-form label field must be a digit
|
|
@proce
|
|
|
|
!CHECK: Character in fixed-form label field must be a digit
|
|
@precoss
|
|
|
|
end
|