Mercurial > hg > CbC > CbC_gcc
comparison CbC-examples/rectypeTest/inparm.cbc @ 106:85047c4f1ca4
add CbC-examples/rectypeTest
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 13 Jun 2012 17:18:58 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
105:b3cfc7733d3f | 106:85047c4f1ca4 |
---|---|
1 #include <stdio.h> | |
2 #include <stdlib.h> | |
3 | |
4 __code print(__rectype *p) { | |
5 puts("inparm: hello"); | |
6 exit(0); | |
7 } | |
8 | |
9 __code csA(__code (*p)(__rectype*)) { | |
10 goto p(csA); | |
11 } | |
12 | |
13 void main1() { | |
14 goto csA(print); | |
15 } | |
16 | |
17 int main() { | |
18 main1(); | |
19 return 0; | |
20 } |