summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20071117-1.c
blob: efcd51269ba4b8948354d64b650301941b305cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR middle-end/34134 */

extern void bar (void *, int);

int foo (int i)
{
  char *p = __builtin_stack_save ();
  void *q = __builtin_alloca (i);
  bar (q, i);
  __builtin_stack_restore (p);
  bar ("", 0);
  return 6;
}