Mercurial > hg > CbC > CbC_gcc
view CbC-examples/test02.c @ 133:420680fc7707
do normal call in goto codesegment in normal function
author | anatofuz |
---|---|
date | Sat, 03 Nov 2018 19:49:09 +0900 |
parents | 5d30d517ebed |
children |
line wrap: on
line source
#include<stdio.h> extern int printf(const char*, ...); __code test_code(void){ printf("\t\ttest_code: return 10\n"); return; } __code test_goto(int a){ printf("\ttest_goto: a = %d\n", a); //return test_code(); goto test_code(); } int main(int argc, char **argv){ int ret=0; printf("test code\n"); test_goto(20); printf("main: ret = %d\n", ret); return 0; }