mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 06:30:30 +00:00
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37090 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14ba0cc429
commit
01b4748b39
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