[clang] [clang][test] Add missing FileCheck pipe in cxx20-module-directive.cpp (PR #185315)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 8 12:48:46 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Fady Farag (iidmsa)
<details>
<summary>Changes</summary>
The test had CHECK directives that were never executed because the RUN line did not pipe output to FileCheck.
---
Full diff: https://github.com/llvm/llvm-project/pull/185315.diff
1 Files Affected:
- (modified) clang/test/Lexer/cxx20-module-directive.cpp (+1-1)
``````````diff
diff --git a/clang/test/Lexer/cxx20-module-directive.cpp b/clang/test/Lexer/cxx20-module-directive.cpp
index e420ff4b11407..10379ba9867b9 100644
--- a/clang/test/Lexer/cxx20-module-directive.cpp
+++ b/clang/test/Lexer/cxx20-module-directive.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -E -std=c++20 %s
+// RUN: %clang_cc1 -E -std=c++20 %s | FileCheck %s
// CHECK: export __preprocessed_module M;
// CHECK-NEXT: export __preprocessed_import K;
``````````
</details>
https://github.com/llvm/llvm-project/pull/185315
More information about the cfe-commits
mailing list