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

struct A
{
  int n;
  void foo ();
};

void
A::foo ()
{
  try
  {
    #pragma omp parallel for
      for (int i = 0; i < n; ++i)
	;
  } catch (...) {}
}