blob: fab5f09c31a3bd194cc5cc25cbfb74a22b70be4d [file] [log] [blame]
/* { dg-do assemble } */
class A {};
class B {};
static void *func (int n)
{
void *p;
if (p == 0) throw ::A ();
} // { dg-warning "control reaches end of non-void function" }
static void *func (int n, B const &)
{
try {
return func (n);
}
catch (::A const &) {
}
return func (n);
}
void *f1 (int n)
{
return func (n, B());
}
void *f2 (int n)
{
return func (n, B());
}