[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)
Burhan Söğüt via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 11 13:23:25 PDT 2025
================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
+// RUN: FileCheck --input-file=%t.cir %s
+
+void test(int a) {
+// CHECK: cir.func dso_local @{{.+}}test
+
+ // Should generate LValue parenthesis expression.
+ (a) = 1;
+ // CHECK: %[[#C:]] = cir.const #cir.int<1> : !s32i
----------------
bursot wrote:
Got it, thanks for the clarification.
https://github.com/llvm/llvm-project/pull/157333
More information about the cfe-commits
mailing list