view CbC-examples/test02.c @ 48:9907f3135723

update CbC on GCC from 4.4.2 to 4.4.3.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Sun, 07 Feb 2010 17:48:31 +0900
parents 4c6926a2b9bc
children 5d30d517ebed
line wrap: on
line source

#include<stdio.h>

__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;
}