summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/for-15.C
blob: 25eea2ad24d0135e881a704f1d9352ea360f7e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// PR c++/24512
// { dg-do compile }

template<typename T> void foo ()
{
#pragma omp for
  for (int i = 0; i < 10; i++);

#pragma omp for
  for (int i = 0; i < 10; i++);

#pragma omp for
  for (T j = 0; j < 10; j++);

#pragma omp for
  for (T j = 0; j < 10; j++);

#pragma omp parallel for
  for (int k = 0; k < 10; k++);

#pragma omp parallel for
  for (int k = 0; k < 10; k++);

#pragma omp parallel for
  for (T l = 0; l < 10; l++);

#pragma omp parallel for
  for (T l = 0; l < 10; l++);
}

void bar ()
{
  foo<int> ();
  foo<long> ();
}