[clang] [CIR] Upstream initial support for union type (PR #137501)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 28 10:53:13 PDT 2025
================
@@ -5,25 +5,146 @@
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll
// RUN: FileCheck --check-prefix=OGCG --input-file=%t.ll %s
+union U1 {
----------------
andykaylor wrote:
Can you add tests for a union that requires padding, a union that is packed, and a union that isn't zero-initializable?
https://github.com/llvm/llvm-project/pull/137501
More information about the cfe-commits
mailing list