From eac0e44d4066a4a7f16d5dfe65a0e9c18c16ba6f Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 21 Oct 2019 20:30:06 +0200 Subject: [PATCH] :white_check_mark: Testing --- tests/import/fptr_tmpl.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/import/fptr_tmpl.c 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; +} -- 2.43.0