summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr26823-2.C
blob: d4747cff5e5af150c9a77c3ecc2cc16a3a62eb8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// PR middle-end/26823
// { dg-do compile }

struct A
{
  ~A () {}
};

extern void bar ();

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