1 /* PR middle-end/34134 */ 2 /* { dg-require-effective-target alloca } */ 3 4 extern void bar (void *, int); 5 foo(int i)6 int foo (int i) 7 { 8 char *p = __builtin_stack_save (); 9 void *q = __builtin_alloca (i); 10 bar (q, i); 11 __builtin_stack_restore (p); 12 bar ("", 0); 13 return 6; 14 } 15