// 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" }
// 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" }