1/* PR middle-end/58257 */
2/* { dg-do compile } */
3/* { dg-options "-O2 -fopenmp -Wall" } */
4
5int
6foo (int n)
7{
8  int a[10][10];
9  int x, y;
10#pragma omp parallel for collapse(2)	/* { dg-bogus "may be used uninitialized in this function" } */
11  for (x = 0; x < n; x++)		/* { dg-bogus "may be used uninitialized in this function" } */
12    for (y = 0; y < n; y++)
13      a[x][y] = x + y * y;
14  return a[0][0];
15}
16