view CbC-examples/test02.c @ 136:4627f235cf2a

fix c-next example
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:11:56 +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;
}