summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr58874.C
blob: be3f53e44679b2dde3b970110b0dc59c8de8bd64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/58874
// { dg-do compile }
// { dg-options "-fopenmp" }

struct A
{
  template<int> struct B
  {
    #pragma omp declare reduction (x : int : omp_out |= omp_in)
  };
};

#pragma omp declare reduction (y : long : omp_out |= omp_in) \
	initializer (omp_priv = 0)