mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
eb3cd5e822
llvm-svn: 51695
18 lines
287 B
C
18 lines
287 B
C
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
|
|
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
|
|
|
|
struct p {
|
|
char a;
|
|
int b;
|
|
} __attribute__ ((packed));
|
|
|
|
struct p t = { 1, 10 };
|
|
struct p u;
|
|
|
|
int main () {
|
|
int tmp = t.b;
|
|
u.b = tmp;
|
|
return tmp;
|
|
|
|
}
|