summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr38633.C
blob: 99b87957380c6516e0f1d83a2b9867b5c35c6222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR middle-end/38633
// { dg-do compile }
// { dg-options "-fopenmp" }

void
foo ()
{
#pragma omp parallel
  {
    struct A { int i; } j;
    j.i = 6;
    j.i++;
  }
}