]>
Commit | Line | Data |
---|---|---|
4014b382 JM |
1 | /* Missing warning for falling off the end of a non-void function. |
2 | egcs-1.1.2 passes, egcs-ss-19990428 fails. | |
54d7ee59 | 3 | http://gcc.gnu.org/ml/gcc-bugs/1999-03n/msg00221.html */ |
4014b382 JM |
4 | /* { dg-do compile } */ |
5 | /* { dg-options "-O -Wreturn-type" } */ | |
6 | int | |
7 | foo(void) | |
6de9cd9a DN |
8 | { |
9 | } /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */ |