view CbC-examples/rectypeTest/inparm.cbc @ 108:7ad14f446135

add CbC-example/rectypeTest/
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Thu, 14 Jun 2012 20:30:24 +0900
parents 85047c4f1ca4
children
line wrap: on
line source

#include <stdio.h>
#include <stdlib.h>

__code print(__rectype *p) {
	puts("inparm: hello");
	exit(0);
}

__code csA(__code (*p)(__rectype*)) {
	goto p(csA);
}

void main1() {
	goto csA(print);
}

int main() {
	main1();
	return 0;
}