blob: 3b9ad93ea51475d52f3e2b53eadb9a67d23aef4b [file] [log] [blame]
! 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"