Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
16 | 1 #include<stdio.h> |
126 | 2 extern int printf(const char*, ...); |
16 | 3 |
4 __code test_code(void){ | |
5 printf("\t\ttest_code: return 10\n"); | |
6 return; | |
7 } | |
8 | |
9 __code test_goto(int a){ | |
10 printf("\ttest_goto: a = %d\n", a); | |
11 //return test_code(); | |
12 goto test_code(); | |
13 } | |
14 | |
15 int main(int argc, char **argv){ | |
16 int ret=0; | |
17 printf("test code\n"); | |
18 test_goto(20); | |
19 printf("main: ret = %d\n", ret); | |
20 | |
21 return 0; | |
22 } | |
23 |