(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
Wreturn-6.C
// 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" }