Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
g++.dg
/
warn
/
pr23075.C
blob: 1521b658139c6c8af6371bec0cb4ac25dcde6401 [
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 "control reaches end" }