Files
clang-p2996/flang/test/Driver/parse-error.f95
Asher Mancinelli dfce2909ee [flang] Lift -Werror checks into local functions
Lift checks for -Werror into local functions.

Reviewed By: awarzynski

Differential Revision: https://reviews.llvm.org/D101261
2021-08-06 12:43:19 -06:00

12 lines
458 B
Fortran

! Verify that parsing errors are correctly reported by the driver
! Focuses on actions inheriting from the following:
! * PrescanAndSemaAction (-fsyntax-only)
! * PrescanAndParseAction (-fdebug-unparse-no-sema)
! RUN: not %flang_fc1 -fdebug-unparse-no-sema %s 2>&1 | FileCheck %s --check-prefix=ERROR
! RUN: not %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=ERROR
! ERROR: Could not parse {{.*}}parse-error.f95
"This file will not parse"