mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
New test.
llvm-svn: 37090
This commit is contained in:
parent
78ae2e1acb
commit
407b92f7f4
23
test/CFrontend/2007-05-15-PaddingElement.c
Normal file
23
test/CFrontend/2007-05-15-PaddingElement.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user