Idris-dev/test/ffi006/ffi006.c
2015-03-07 22:09:52 +00:00

15 lines
263 B
C

#include "testHdr.h"
int main() {
VM* vm = idris_vm();
ListInt x = cons(vm, 10, cons(vm, 20, nil(vm)));
ListInt y = cons(vm, 30, cons(vm, 40, nil(vm)));
ListInt z = addLists(vm, x, y);
printf("%s\n", showList(vm, z));
close_vm(vm);
}