blob: 97fda9dbd91fec473fdfb0b265cb0214fbe88124 [file] [log] [blame]
// PR c++/81660
void bar (int);
void
fn (int b)
{
if (b)
throw;
try
{
bar (3);
}
catch (int)
{
}
catch (int) // { dg-warning "will be caught by earlier handler" }
{
}
catch (const int) // { dg-warning "will be caught by earlier handler" }
{
}
catch (int &) // { dg-warning "will be caught by earlier handler" }
{
}
catch (const int &) // { dg-warning "will be caught by earlier handler" }
{
}
}