Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr23075.C
blob: 59e93be48f84fc0d3a240685979e035658d2bb3b [
file
] [
log
] [
blame
]
// 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" }