[clang] [NFC] Add redirect the output (PR #179623)

Mikael Holmen via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 4 00:15:31 PST 2026


================
@@ -5,11 +5,11 @@
 // RUN:         -o - -mconstructor-aliases -O1 -disable-llvm-passes | \
 // RUN:         FileCheck %s --check-prefix=CHECK --check-prefix=NOCXX
 // RUN: %clang_cc1 -triple x86_64-windows -fasync-exceptions -fcxx-exceptions -fexceptions \
-// RUN:         -fms-extensions -x c++ -emit-llvm -verify %s -DERR1
+// RUN:         -fms-extensions -x c++ -emit-llvm -verify -o - %s -DERR1
----------------
mikaelholmen wrote:

If you don't care about the ouput at all, then maybe use "-o /dev/null" instead of redirecting to -?

Previously in some cases like this we've removed "-emit-llvm" but if doing that here we don't get the expected errors, so I guess that doesn't work here.

https://github.com/llvm/llvm-project/pull/179623


More information about the cfe-commits mailing list