2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / return-type-1.c
blob037dbbf08239b5b4e542e737a18cdcca3d3d6430
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)
8 { /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */