rt_gccstream/libgomp/testsuite/libgomp.c++/task-7.C

19 lines
203 B
C

// 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;
}