aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/union-init2.c
blob: e782425cf2b11e7c34a168c167cc3ff324d33bb1 (plain) (blame)
1
2
3
4
// RUN: clang-cc -emit-llvm %s -o - -triple i686-pc-linux-gnu | grep "bitcast (%0\* @r to %union.x\*), \[4 x i8\] undef"

// Make sure we generate something sane instead of a ptrtoint
union x {long long b;union x* a;} r = {.a = &r};