Mercurial > hg > CbC > old > device
view test/func_conv_err.c @ 606:1e29742ea9a6
*** empty log message ***
author | kono |
---|---|
date | Wed, 01 Feb 2006 07:12:03 +0900 |
parents | aad312f61654 |
children | 682c8ec38d45 |
line wrap: on
line source
code hoge() { goto hoge(); // ok } int f() { return 1; } code hoga(int i) { f(); // ok h(); // ok h() is a function if (i) goto f(); // bad else if(i-1) goto g(i); // ok g() is a code segement } // need goto bad int g(int i) { // g is already used as code bad k(); if (i) goto h(); // bad // should complain.... no return value } code k() { // bad k is already used as function goto hoge(); // ok } int main() { hoge(); // bad return 0; }