From 755cdbb1d3167411961dbf5364226ab2da3f3de9 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 8 Oct 2019 02:10:30 +0200 Subject: [PATCH] :white_check_mark: already imported op --- tests/import/op_already_imported.c | 21 +++++++++++++++++++++ tests/import/op_already_imported.gw | 2 ++ tests/sh/{plugin.sh => import.sh} | 0 3 files changed, 23 insertions(+) create mode 100644 tests/import/op_already_imported.c create mode 100644 tests/import/op_already_imported.gw rename tests/sh/{plugin.sh => import.sh} (100%) diff --git a/tests/import/op_already_imported.c b/tests/import/op_already_imported.c new file mode 100644 index 00000000..62f1ef20 --- /dev/null +++ b/tests/import/op_already_imported.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 "instr.h" +#include "object.h" +#include "instr.h" +#include "vm.h" +#include "gwion.h" +#include "operator.h" +#include "import.h" +#include "gwi.h" + + +GWION_IMPORT(op_already_imported) { + CHECK_BB(gwi_oper_ini(gwi, "int", "int", "int")) + CHECK_BB(gwi_oper_end(gwi, "=>", NULL)) + return GW_OK; +} diff --git a/tests/import/op_already_imported.gw b/tests/import/op_already_imported.gw new file mode 100644 index 00000000..2aeb3617 --- /dev/null +++ b/tests/import/op_already_imported.gw @@ -0,0 +1,2 @@ +#! [contains] already imported +<<<1 >>>; diff --git a/tests/sh/plugin.sh b/tests/sh/import.sh similarity index 100% rename from tests/sh/plugin.sh rename to tests/sh/import.sh -- 2.43.0