From 63abeb2cf483b262a096cfbeeeb931485908b2df Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 4 Nov 2019 17:30:01 +0100 Subject: [PATCH] :art: Update --- tests/import/func_fail4.c | 20 ++++++++++++++++++++ tests/sh/import.sh | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 tests/import/func_fail4.c diff --git a/tests/import/func_fail4.c b/tests/import/func_fail4.c new file mode 100644 index 00000000..02d0fdb9 --- /dev/null +++ b/tests/import/func_fail4.c @@ -0,0 +1,20 @@ +#include "gwion_util.h" +#include "gwion_ast.h" +#include "oo.h" +#include "vm.h" +#include "env.h" +#include "type.h" +#include "instr.h" +#include "object.h" +#include "gwion.h" +#include "value.h" +#include "operator.h" +#include "import.h" +#include "instr.h" + +GWION_IMPORT(too_many_args) { + GWI_BB(gwi_func_ini(gwi, "Ptr<~int~>", "test<~A~>")) + GWI_BB(gwi_func_arg(gwi, "int", "i[][]")) + GWI_BB(gwi_item_end(gwi, ae_flag_none, NULL)) + return GW_OK; +} diff --git a/tests/sh/import.sh b/tests/sh/import.sh index dd71344c..76f8b5c7 100644 --- a/tests/sh/import.sh +++ b/tests/sh/import.sh @@ -1,5 +1,5 @@ #!/bin/bash -# [test] #71 +# [test] #72 n=0 [ "$1" ] && n="$1" -- 2.43.0