[clang] [Clang][Driver] Create crash reproducers for IR inputs (PR #165572)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 3 15:58:34 PST 2025


================
@@ -0,0 +1,15 @@
+// RUN: %clang -S -emit-llvm -o %t.ll %s
+// RUN: not %clang -DCRASH %s %t.ll 2>&1 | FileCheck %s
----------------
efriedma-quic wrote:

I suspect this regression test will break in some situations; it assumes that invoking "clang" can actually link a program, which isn't the case for less common build configs.  Can we trigger this without trying to link a program?

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


More information about the cfe-commits mailing list