[flang][Driver] Fix flang/test/Driver/parse-error.ll
The error returned from the driver is actually "Could not scan", not
"Could not parse". The reason that the test has been passing is that
the FileCheck's regular expression "{{.*}}" was one of many sources
of problems, and was quoted in the output. The "CHECK" line matched
the quoted line instead of the actual error message.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
; RUN: not %flang_fc1 -fdebug-unparse-no-sema -x f95 %s 2>&1 | FileCheck %s --check-prefix=ERROR
|
||||
; RUN: not %flang_fc1 -fsyntax-only %s -x f95 2>&1 | FileCheck %s --check-prefix=ERROR
|
||||
|
||||
; ERROR: Could not parse {{.*}}parse-error.f95
|
||||
; ERROR: Could not scan {{.*}}parse-error.f95
|
||||
|
||||
define void @foo() {
|
||||
ret void
|
||||
|
||||
Reference in New Issue
Block a user