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

     1  /* { dg-require-effective-target int32plus } */
     2  /* { dg-require-effective-target alloca } */
     3  
     4  void *volatile p;
     5  
     6  int
     7  main (void)
     8  {
     9    int n = 0;
    10  lab:;
    11      {
    12        int x[n % 1000 + 1];
    13        x[0] = 1;
    14        x[n % 1000] = 2;
    15        p = x;
    16        n++;
    17      }
    18  
    19      {
    20        int x[n % 1000 + 1];
    21        x[0] = 1;
    22        x[n % 1000] = 2;
    23        p = x;
    24        n++;
    25      }
    26  
    27    if (n < 1000000)
    28      goto lab;
    29  
    30    return 0;
    31  }