mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
020f241883
automatically. Use -S with llvm-gcc rather than -c, so tests can work when llvm-gcc is really dragonegg (which can output IR with -S but not -c). llvm-svn: 120158
24 lines
290 B
C
24 lines
290 B
C
// PR 1419
|
|
|
|
// RUN: %llvmgcc -xc -O2 %s -S -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);
|
|
}
|