blob: 75a82c14ad0f96656ef536e50b3f7dd4f600fdfb [file] [log] [blame]
Dan Gohman43c3db32007-08-15 13:49:33 +00001// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
Dan Gohman8a3f6442009-12-05 00:02:37 +00002// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llc
Lauro Ramos Venanciodd487c12007-08-01 20:07:59 +00003
4struct p {
5 char a;
6 int b;
7} __attribute__ ((packed));
8
9struct p t = { 1, 10 };
10struct p u;
11
12int main () {
13 int tmp = t.b;
14 u.b = tmp;
15 return tmp;
16
17}