aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr58257.c
blob: 8f8d24a998adfc427ce539f5595ca769df2c4f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/58257 */
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp -Wall" } */

int
foo (int n)
{
  int a[10][10];
  int x, y;
#pragma omp parallel for collapse(2)	/* { dg-bogus "may be used uninitialized in this function" } */
  for (x = 0; x < n; x++)		/* { dg-bogus "may be used uninitialized in this function" } */
    for (y = 0; y < n; y++)
      a[x][y] = x + y * y;
  return a[0][0];
}