Mercurial > hg > CbC > CbC_gcc
annotate CbC-examples/test02.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +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 |