[clang] [clang][test] Add missing FileCheck pipe in cxx20-module-directive.cpp (PR #185315)

Fady Farag via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 8 12:48:18 PDT 2026


https://github.com/iidmsa created https://github.com/llvm/llvm-project/pull/185315

The test had CHECK directives that were never executed because the RUN line did not pipe output to FileCheck.

>From ca1dd540b671032c8198c197de9954d21ec11335 Mon Sep 17 00:00:00 2001
From: Fady Farag <com.webkit.iidmsa at gmail.com>
Date: Sun, 8 Mar 2026 14:46:21 -0500
Subject: [PATCH] [clang][test] Add missing FileCheck pipe in
 cxx20-module-directive.cpp

The test had CHECK directives that were never executed because the
RUN line did not pipe output to FileCheck.
---
 clang/test/Lexer/cxx20-module-directive.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the cfe-commits mailing list