mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
e23727694c
llvm-svn: 90626
18 lines
277 B
C
18 lines
277 B
C
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
|
|
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | 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;
|
|
|
|
}
|