summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr35028.C
blob: ef7ba07de178b5398253cffe921568bdf36768cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/35028
// { dg-do compile }
// { dg-options "-fopenmp" }

struct A
{
  A ();
  A (const A &, ...);
  ~A ();
  A operator++ (int);
};

void
foo ()
{
  A a;
  #pragma omp parallel firstprivate (a)
    a++;
}