(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
pr23075.C
// PR c/23075
// { dg-do compile }
// { dg-options "-O2 -Wreturn-type" }

int
foo (void)
{
  return;	// { dg-error "with no value" }
}		// { dg-bogus "no return statement" }