[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:
Krzysztof Parzyszek
2025-01-06 12:14:47 -06:00
parent 0d5c07285f
commit 7a07d8e9df

View File

@@ -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