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

struct A
{
  ~A () {}
};

struct B
{
  A a;
  B ();
};

void
foo ()
{
#pragma omp parallel
  {
    B b[1];
    new int;
  }
}