Mercurial > hg > CbC > old > device
diff test/func_conv_err.c @ 574:aad312f61654 inmode-fix
remove too much inmode.
author | kono |
---|---|
date | Fri, 13 Jan 2006 18:37:05 +0900 |
parents | 388baa7d4bee |
children | 682c8ec38d45 |
line wrap: on
line diff
--- a/test/func_conv_err.c Fri Jan 13 01:55:33 2006 +0900 +++ b/test/func_conv_err.c Fri Jan 13 18:37:05 2006 +0900 @@ -16,21 +16,19 @@ h(); // ok h() is a function if (i) goto f(); // bad - else + 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 +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 +code k() { // bad k is already used as function goto hoge(); // ok } @@ -38,5 +36,6 @@ main() { hoge(); // bad + return 0; }