modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/execute/921017-1.c (about)

     1  /* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
     2  f(n)
     3  {
     4    int a[n];
     5    int g(i)
     6      {
     7        return a[i];
     8      }
     9    a[1]=4711;
    10    return g(1);
    11  }
    12  main()
    13  {
    14  #ifndef NO_TRAMPOLINES
    15    if(f(2)!=4711)abort();
    16  #endif
    17    exit(0);
    18  }