1// RUN: %clang_cc1 -emit-llvm %s -o - -triple i686-pc-linux-gnu | FileCheck %s 2 3// Make sure we generate something sane instead of a ptrtoint 4// CHECK: bitcast ({ %union.x*, [4 x i8] }* @r to %union.x*), [4 x i8] undef 5union x {long long b;union x* a;} r = {.a = &r}; 6 7 8// CHECK: global { [3 x i8], [5 x i8] } { [3 x i8] zeroinitializer, [5 x i8] undef } 9union z { 10 char a[3]; 11 long long b; 12}; 13union z y = {}; 14