summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr33372-2.C
blob: cce7ecc743c2e86157277e017d99378fa09d2036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/33372
// { dg-do compile }
// { dg-options "-fopenmp" }

template <typename T>
void f ()
{
  T n = 6;
#pragma omp parallel num_threads(n)
  ;
#pragma omp parallel for schedule(static, n)
  for (int i = 0; i < 10; i++)
    ;
}

void g ()
{
  f<int> ();
}