blob: 543e33e905d9016d062ae34f96b7045b6e83d95b [file] [log] [blame]
// PR C++/66590
// { dg-do compile }
// { dg-options "-Wall" }
struct A{ ~A();};
int f(int x)
{
A a;
switch (x)
{
case 1: { A tmp; return 1; } break;
default: return 0;
}
} // { dg-bogus "control reaches end of non-void function" }