view rectypeTest/rectypeTest1.c @ 5:90e6146d24cd

fix stack1.c
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Wed, 22 Oct 2014 19:02:57 +0900
parents bacef8675607
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;
}