Mercurial > hg > CbC > CbC_examples
view rectypeTest/instruct.cbc @ 0:bacef8675607
init repository
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Oct 2014 17:34:59 +0900 |
parents | |
children |
line wrap: on
line source
#include <stdlib.h> // miss struct interface { __rectype *next; }; __code print(struct interface p) { puts("print"); exit(0); } __code csA(struct interface p) { struct interface ds; ds.next = csA; goto p.next(ds); } void main1() { struct interface ds; ds.next = print; goto csA(ds); } int main() { main1(); return 0; }