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

struct A
{
  ~A ();
};

struct B
{
  A a, b;
};

void
foo ()
{
  A c, d;

#pragma omp parallel
  B e;
}