mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
01b4748b39
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37090 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
301 B
C
24 lines
301 B
C
// 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);
|
|
}
|