Mercurial > hg > CbC > old > device
view test/func_conv_err.c @ 572:388baa7d4bee
more strict errors.
Undeclared identifier
Goto to function, calling code segement
author | kono |
---|---|
date | Fri, 13 Jan 2006 01:51:39 +0900 |
parents | |
children | aad312f61654 |
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 goto g(i); // ok g() is a code segement } 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 }