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

struct A
{
  A ();
  int i;
};

A::A ()
{
#pragma omp critical
  i++;
}