[flang-commits] [flang] 7a07d8e - [flang][Driver] Fix flang/test/Driver/parse-error.ll
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Mon Jan 6 10:35:27 PST 2025
Author: Krzysztof Parzyszek
Date: 2025-01-06T12:35:04-06:00
New Revision: 7a07d8e9dfcf9cbb659883dd539319089563ac5d
URL: https://github.com/llvm/llvm-project/commit/7a07d8e9dfcf9cbb659883dd539319089563ac5d
DIFF: https://github.com/llvm/llvm-project/commit/7a07d8e9dfcf9cbb659883dd539319089563ac5d.diff
LOG: [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.
Added:
Modified:
flang/test/Driver/parse-error.ll
Removed:
################################################################################
diff --git a/flang/test/Driver/parse-error.ll b/flang/test/Driver/parse-error.ll
index 3567c3e3f0a3d8..939ad7018f51c6 100644
--- a/flang/test/Driver/parse-error.ll
+++ b/flang/test/Driver/parse-error.ll
@@ -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
More information about the flang-commits
mailing list