summaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c++/task-7.C
blob: e9828cd2c4d3798bcda9edff908b69daded0b9cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/36523
// { dg-do run }

template<typename T>
struct A
{
  A() { }
  A(const A&) { }
  void foo() { }
};

int main()
{
  A<int> a;
  #pragma omp task firstprivate (a)
    a.foo();
  return 0;
}