summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/921017-1.c
blob: ab68fc084981a276e0d645322dd1b826391a56d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
f(n)
{
  int a[n];
  int g(i)
    {
      return a[i];
    }
  a[1]=4711;
  return g(1);
}
main()
{
#ifndef NO_TRAMPOLINES
  if(f(2)!=4711)abort();
#endif
  exit(0);
}