Fixed some bugs.
[llvm/zpu.git] / test / FrontendC / 2007-08-01-LoadStoreAlign.c
blob75a82c14ad0f96656ef536e50b3f7dd4f600fdfb
1 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
2 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llc
4 struct p {
5 char a;
6 int b;
7 } __attribute__ ((packed));
9 struct p t = { 1, 10 };
10 struct p u;
12 int main () {
13 int tmp = t.b;
14 u.b = tmp;
15 return tmp;