Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/return-type-1.c @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Missing warning for falling off the end of a non-void function. egcs-1.1.2 passes, egcs-ss-19990428 fails. http://gcc.gnu.org/ml/gcc-bugs/1999-03n/msg00221.html */ /* { dg-do compile } */ /* { dg-options "-O -Wreturn-type" } */ int foo(void) { } /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */