New test.

llvm-svn: 37090
This commit is contained in:
Devang Patel 2007-05-15 23:44:27 +00:00
parent 420a85d0cf
commit 431b6a5d4a
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// PR 1419
// RUN: %llvmgcc -xc -O2 %s -c -o - | llvm-dis | 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);
}