Sign in
gnu
/
gcc
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr23075-2.c
blob: 0702ddf1a660ebe4b2781fa3c0db82ed804f08d4 [
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" } */
int
bar
(
void
)
{
}
/* { dg-warning "control reaches end" } */