mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +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:
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);
|
||||
}
|
Reference in New Issue
Block a user