]> Nishi Git Mirror - gwion.git/commitdiff
:white_check_mark: already imported op
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 00:10:30 +0000 (02:10 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 00:10:30 +0000 (02:10 +0200)
tests/import/op_already_imported.c [new file with mode: 0644]
tests/import/op_already_imported.gw [new file with mode: 0644]
tests/sh/import.sh [moved from tests/sh/plugin.sh with 100% similarity]

diff --git a/tests/import/op_already_imported.c b/tests/import/op_already_imported.c
new file mode 100644 (file)
index 0000000..62f1ef2
--- /dev/null
@@ -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 (file)
index 0000000..2aeb361
--- /dev/null
@@ -0,0 +1,2 @@
+#! [contains] already imported
+<<<1 >>>;
similarity index 100%
rename from tests/sh/plugin.sh
rename to tests/sh/import.sh