mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +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;
|
|
|
|
}
|