Mercurial > hg > CbC > CbC_gcc
view CbC-examples/rectypeTest/rectypeTest1.c @ 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 | b3cfc7733d3f |
children |
line wrap: on
line source
#include <stdio.h> __code print(__rectype *p, int num) { printf("num = %d\n",num); } __code csA(__rectype *p, int num) { goto p(csA,3,4); goto p(2,3); goto p(csA,3); return; } void funcA(__code (*p)()){ goto p(print, 3); return; } int main() { funcA(csA); return 0; }