mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
The flang-new driver doesn't check for the case of the parser failing to consume the entire input file. This is of course never an ideal outcome, and usually signals a need to improve error recovery, but it is better for the compiler to admit failure rather than to silently proceed with compilation of what may well be an incomplete parse tree.
23 lines
481 B
Fortran
23 lines
481 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
|
|
|
|
!CHECK: at-process.f:14:1: error: parser FAIL (final position)
|