From: fennecdjay Date: Mon, 21 Oct 2019 18:30:06 +0000 (+0200) Subject: :white_check_mark: Testing X-Git-Tag: nightly~2116^2~46 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=eac0e44d4066a4a7f16d5dfe65a0e9c18c16ba6f;p=gwion.git :white_check_mark: Testing --- diff --git a/tests/import/fptr_tmpl.c b/tests/import/fptr_tmpl.c new file mode 100644 index 00000000..28b0b35b --- /dev/null +++ b/tests/import/fptr_tmpl.c @@ -0,0 +1,21 @@ +#include "gwion_util.h" +#include "gwion_ast.h" +#include "oo.h" +#include "vm.h" +#include "env.h" +#include "type.h" +#include "object.h" +#include "instr.h" +#include "gwion.h" +#include "value.h" +#include "operator.h" +#include "import.h" + +static MFUN(test_func) { puts("test"); } +GWION_IMPORT(typedef_test) { + Type t_func_typedef; + GWI_OB((t_func_typedef = gwi_mk_type(gwi, "FuncTypedef", SZ_INT , NULL))) + GWI_BB(gwi_fptr_ini(gwi, "int", "<~A~>test")) + GWI_OB(gwi_fptr_end(gwi, 0)) + return GW_OK; +}