modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/941202-1.c (about)

     1  /* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
     2  g (x, y)
     3  {
     4    if (x != 3)
     5      abort ();
     6  }
     7  
     8  static inline
     9  f (int i)
    10  {
    11    int *tmp;
    12  
    13    tmp = (int *) alloca (sizeof (i));
    14    *tmp = i;
    15    g (*tmp, 0);
    16  }
    17  
    18  main ()
    19  {
    20    f (3);
    21    exit (0);
    22  };