summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/for-11.C
blob: d15576d2fe928d6d69158e5fc93f1d5b8ae83581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }

extern void baz (int);

void foo (int j, int k)
{
  #pragma omp for
  for (int l = j; l < k; l++)
    baz (l);

  #pragma omp for
  for (int i = 0, m = 0; m < 10; m++)	// { dg-error "" }
    baz (m);
}