summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000412-2.c
blob: de3ebf9e8638683d0f13e3eef6b7d127c177ce5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int f(int a,int *y)
{
  int x = a;

  if (a==0)
    return *y;

  return f(a-1,&x);
}

int main(int argc,char **argv)
{
  if (f (100, (int *) 0) != 1)
    abort ();
  exit (0);
}