aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/pr25989.c
blob: 39bd4b77c5e5cbdc86ab5e2d652a22bbf6dd2e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR middle-end/25989 */
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp" } */

int
main (void)
{
  int i, j;
  float a, b = 1.0;

#pragma omp parallel for schedule(guided,1) private(j)
  for (i = 1; i <= 9; i++)
    for (j = 1; j <= 9; j++)
      a = b;
  return 0;
}