pr23075.C   [plain text]


// PR c/23075
// { dg-do compile }
// { dg-options "-O2 -Wreturn-type" }

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