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

void foo(int);

template<int A, int B, int C> void bar()
{
  #pragma omp for
  for (int i = A; i < B; i += C)
    foo(i);
}

void test()
{
  bar<0, 10, 2>();
}