PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040308-1.c
blob4277a5068bece78eb7ee495b9f18c535a0adaa23
1 /* { dg-require-effective-target alloca } */
2 /* This used to fail on SPARC with an unaligned memory access. */
4 void foo(int n)
6 struct S {
7 int i[n];
8 unsigned int b:1;
9 int i2;
10 } __attribute__ ((packed)) __attribute__ ((aligned (4)));
12 struct S s;
14 s.i2 = 0;
17 int main(void)
19 foo(4);
21 return 0;