[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / CodeGen / union-init2.c
blob1386c27cc0bd4d9f0c0cbcabbec45a223a0b43d5
1 // RUN: %clang_cc1 -emit-llvm %s -o - -triple i686-pc-linux-gnu | FileCheck %s
3 // Make sure we generate something sane instead of a ptrtoint
4 // CHECK: bitcast (%0* @r to %union.x*), [4 x i8] undef
5 union x {long long b;union x* a;} r = {.a = &r};
8 // CHECK: global %1 { [3 x i8] zeroinitializer, [5 x i8] undef }
9 union z {
10 char a[3];
11 long long b;
13 union z y = {};