minix/external/bsd/llvm/dist/clang/test/CodeGen/2007-05-15-PaddingElement.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

23 lines
297 B
C

// PR 1419
// RUN: %clang_cc1 -O2 %s -emit-llvm -o - | grep "ret i32 1"
struct A {
short x;
long long :0;
};
struct B {
char a;
char b;
unsigned char i;
};
union X { struct A a; struct B b; };
int check(void) {
union X x, y;
y.b.i = 0xff;
x = y;
return (x.b.i == 0xff);
}