(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
torture/
pr81659.C
// { dg-do compile }

void
a (int b)
{
  if (b)
    throw;
  try
    {
      a (3);
    }
  catch (int)
    {
    }
  catch (int) // { dg-warning "will be caught by earlier handler" }
    {
    }
}