Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }