(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
compat/
eh/
dtor1_y.C
extern int r;
int ad;

#include "dtor1.h"

A::~A () { ++ad; }

B::~B ()
try
  {
    throw 1;
  }
catch (...)
  {
    if (!ad)
      r = 1;
    return;
  }