PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20070824-1.c
blob4842bfe218c9c278c8687b83318261435e4a9162
1 /* PR tree-optimization/33136 */
2 /* { dg-require-effective-target alloca } */
4 extern void abort (void);
6 struct S
8 struct S *a;
9 int b;
12 int
13 main (void)
15 struct S *s = (struct S *) 0, **p, *n;
16 for (p = &s; *p; p = &(*p)->a);
17 n = (struct S *) __builtin_alloca (sizeof (*n));
18 n->a = *p;
19 n->b = 1;
20 *p = n;
22 if (!s)
23 abort ();
24 return 0;