llvm-6502/test/FrontendC/2007-08-01-LoadStoreAlign.c
2009-12-05 00:02:37 +00:00

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;
}