summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr40388.C
blob: 63fbbfba5a25f5d49e6a21fc928e50c7cdba9d1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void foo();

struct A
{
  ~A()
  {
    try
    {
      foo();
      foo();
    }
    catch (...)
    {
    }
  }
};

void bar()
{
  A a1, a2;
}