Mercurial > hg > CbC > CbC_gcc
annotate CbC-examples/test02.c @ 126:5d30d517ebed
fix example
author | mir3636 |
---|---|
date | Sun, 08 Apr 2018 20:55:21 +0900 |
parents | 4c6926a2b9bc |
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 |