Mercurial > hg > CbC > old > device
comparison 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 |
comparison
equal
deleted
inserted
replaced
573:3de2ae36c7e5 | 574:aad312f61654 |
---|---|
14 { | 14 { |
15 f(); // ok | 15 f(); // ok |
16 h(); // ok h() is a function | 16 h(); // ok h() is a function |
17 if (i) | 17 if (i) |
18 goto f(); // bad | 18 goto f(); // bad |
19 else | 19 else if(i-1) |
20 goto g(i); // ok g() is a code segement | 20 goto g(i); // ok g() is a code segement |
21 } | 21 } // need goto bad |
22 | 22 |
23 int | 23 int |
24 g(int i) | 24 g(int i) { // g is already used as code bad |
25 { // g is already used as code bad | |
26 k(); | 25 k(); |
27 if (i) | 26 if (i) |
28 goto h(); // bad | 27 goto h(); // bad |
29 // should complain.... no return value | 28 // should complain.... no return value |
30 } | 29 } |
31 | 30 |
32 code k() | 31 code k() { // bad k is already used as function |
33 { // bad k is already used as function | |
34 goto hoge(); // ok | 32 goto hoge(); // ok |
35 } | 33 } |
36 | 34 |
37 int | 35 int |
38 main() | 36 main() |
39 { | 37 { |
40 hoge(); // bad | 38 hoge(); // bad |
39 return 0; | |
41 } | 40 } |
42 | 41 |