Skip to content

Commit 7a07d8e

Browse files
committed
[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.
1 parent 0d5c072 commit 7a07d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/test/Driver/parse-error.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
; RUN: not %flang_fc1 -fdebug-unparse-no-sema -x f95 %s 2>&1 | FileCheck %s --check-prefix=ERROR
1414
; RUN: not %flang_fc1 -fsyntax-only %s -x f95 2>&1 | FileCheck %s --check-prefix=ERROR
1515

16-
; ERROR: Could not parse {{.*}}parse-error.f95
16+
; ERROR: Could not scan {{.*}}parse-error.f95
1717

1818
define void @foo() {
1919
ret void

0 commit comments

Comments
 (0)