This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040308-1.c
blob4c63535e7f7c79a8182675f6e14d85d657b63745
1 /* This used to fail on SPARC with an unaligned memory access. */
3 void foo(int n)
5 struct S {
6 int i[n];
7 unsigned int b:1;
8 int i2;
9 } __attribute__ ((packed)) __attribute__ ((aligned (4)));
11 struct S s;
13 s.i2 = 0;
16 int main(void)
18 foo(4);
20 return 0;