aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c++/pr70376.C
blob: 595c2cc930c28c99572c93143c245c7d2ed19825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/70376
// { dg-do link }

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

int
main ()
{
  A<int> a;
  #pragma omp taskloop
  for (int i = 0; i < 64; i++)
    a.foo();
  return 0;
}