1 /* PR middle-end/30494 */ 2 /* { dg-do compile } */ 3 /* { dg-require-effective-target alloca } */ 4 5 int foo(int n)6foo (int n) 7 { 8 int i; 9 #pragma omp for 10 for (i = 0; i < 6; i++) 11 { 12 int v[n], w[n * 3 + i]; 13 v[0] = 1; 14 w[0] = 2; 15 } 16 return 0; 17 } 18 19 int bar(int n)20bar (int n) 21 { 22 int i; 23 #pragma parallel omp for 24 for (i = 0; i < 6; i++) 25 { 26 int v[n], w[n * 3 + i]; 27 v[0] = 1; 28 w[0] = 2; 29 } 30 return 0; 31 } 32