Mercurial > hg > CbC > CbC_gcc
annotate CbC-examples/test02.c @ 81:dbfc0d2dde36
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 24 Sep 2011 02:43:04 +0900 |
parents | 4c6926a2b9bc |
children | 5d30d517ebed |
rev | line source |
---|---|
16 | 1 #include<stdio.h> |
2 | |
3 __code test_code(void){ | |
4 printf("\t\ttest_code: return 10\n"); | |
5 return; | |
6 } | |
7 | |
8 __code test_goto(int a){ | |
9 printf("\ttest_goto: a = %d\n", a); | |
10 //return test_code(); | |
11 goto test_code(); | |
12 } | |
13 | |
14 int main(int argc, char **argv){ | |
15 int ret=0; | |
16 printf("test code\n"); | |
17 test_goto(20); | |
18 printf("main: ret = %d\n", ret); | |
19 | |
20 return 0; | |
21 } | |
22 |