https://github.com/iidmsa updated 
https://github.com/llvm/llvm-project/pull/198218

>From b1196a5dfeda79d3ad3a23cf4b65c7ef1121705d Mon Sep 17 00:00:00 2001
From: Fady Farag <[email protected]>
Date: Sun, 17 May 2026 17:29:22 -0500
Subject: [PATCH] [clang][test] Use `FileCheck` pipe in
 `Driver/modules-driver-incompatible-options.cpp`

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

This also includes `2>&1` before the pipe to `FileCheck`, since Clang's driver 
error messages are written to `stderr`.

This also adds `%t/` prefix to `main.cpp`, which should be the intended 
directory.
---
 clang/test/Driver/modules-driver-incompatible-options.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/Driver/modules-driver-incompatible-options.cpp 
b/clang/test/Driver/modules-driver-incompatible-options.cpp
index 88de9a6eac0e9..3d6d4dce2b28f 100644
--- a/clang/test/Driver/modules-driver-incompatible-options.cpp
+++ b/clang/test/Driver/modules-driver-incompatible-options.cpp
@@ -2,7 +2,7 @@
 // -fmodules-driver and other options.
 
 // RUN: split-file %s %t
-// RUN: not %clang -std=c++20 -fmodules-driver -fno-modules-reduced-bmi 
main.cpp -###
+// RUN: not %clang -std=c++20 -fmodules-driver -fno-modules-reduced-bmi 
%t/main.cpp -### 2>&1 | FileCheck %s
 
 // CHECK: clang: error: '-fmodules-driver' is currently incompatible with 
'-fno-modules-reduced-bmi'
 

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to