blob: e5b1b483d767142d838aafbf9bc348532ff54459 [file] [log] [blame]
// PR c/23075
// { dg-do compile }
// { dg-options "-O2 -Wreturn-type" }
int
foo (void)
{
return; // { dg-error "with no value" }
} // { dg-warning "no return statement" }