Mercurial > hg > CbC > old > device
view test/func_conv_err.c @ 748:c2c709727221
i64 continue... basic.s assembled.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 13 Nov 2010 22:39:40 +0900 |
parents | 3f1f6c0610c1 |
children | 5313ed059cee |
line wrap: on
line source
#define __environment _CbC_environment #define __return _CbC_return __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; }