1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 00:12:50 +01:00
llvm-mirror/test/FrontendC/2007-08-01-LoadStoreAlign.c

18 lines
255 B
C
Raw Normal View History

// RUN: %llvmgcc -O3 -S -o - %s | grep {align 1} | count 2
// RUN: %llvmgcc -O3 -S -o - %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;
}