[clang] [CIR][NFC] Add test coverage for static member call side effects (PR #239291)
Akimasa Watanuki via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 12:07:38 PST 2026
================
@@ -0,0 +1,68 @@
+// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
+// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR
----------------
Men-cotton wrote:
Could you add a RUN line and corresponding checks for the C++ → CIR → LLVM IR path?
```suggestion
// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR
// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll
// RUN: FileCheck --input-file=%t-cir.ll %s -check-prefix=LLVM
```
https://github.com/llvm/llvm-project/pull/239291
More information about the cfe-commits
mailing list