view loop/print.cbc @ 5:8bf48c0cb198

add cbc program CbC/loop
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Sun, 03 Jun 2012 14:22:49 +0900
parents
children
line wrap: on
line source

__code print(__rectype *p);

__code func(__rectype *p) { 
  p(print);
}

#include <stdio.h>
__code print(__rectype *p) { 
  printf("Hello\n");
}

int main() { 
  goto func(print); 
  return 0;
}