Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
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" }