PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / return-type-1.c
blob2507cafa5e4f872b42109cb2a6a15737946ad897
1 /* Missing warning for falling off the end of a non-void function.
2 egcs-1.1.2 passes, egcs-ss-19990428 fails.
3 http://gcc.gnu.org/ml/gcc-bugs/1999-03n/msg00221.html */
4 /* { dg-do compile } */
5 /* { dg-options "-O -Wreturn-type" } */
6 int
7 foo(void)
9 } /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */