summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr25874.C
blob: 83573f10a57396f6214acc1cb002480abbd82547 (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
// { dg-options "-O -fopenmp" }

int foo();

struct wigner_d
  {
  void recurse () {
    int dd;
    for (int j=0; j<=1; ++j) {
#pragma omp parallel
      dd=5;
      }
    }
  };

template<typename T> void rotate_alm(T arg)
  {
  wigner_d rec;
  rec.recurse();
#pragma omp parallel
    foo();
  }

template void rotate_alm(float arg);
template void rotate_alm(double arg);