[clang] [CIR] Implement zero-initialization of padding in constant records (PR #162483)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 8 19:46:10 PDT 2025
================
@@ -0,0 +1,90 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
+// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR
+// RUN: %clang_cc1 -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
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll
+// RUN: FileCheck --input-file=%t.ll %s -check-prefix=OGCG
+
+struct padding_after_field {
+ char c;
----------------
bcardosolopes wrote:
two space indentation
https://github.com/llvm/llvm-project/pull/162483
More information about the cfe-commits
mailing list