1/* { dg-require-effective-target int32plus } */ 2/* { dg-require-effective-target alloca } */ 3 4void *volatile p; 5 6int 7main (void) 8{ 9 int n = 0; 10lab:; 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} 32