// PR c++/107310
struct f
{
~f();
};
int foo(int t) {
f g;
switch (t) {
case 1:
return 1;
}
if (true)
throw 1;
} // { dg-bogus "control reaches end" }
// PR c++/107310
struct f
{
~f();
};
int foo(int t) {
f g;
switch (t) {
case 1:
return 1;
}
if (true)
throw 1;
} // { dg-bogus "control reaches end" }