From 63461f95ce45bc21cff5a4ea81ec03fd54db37a3 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 15:59:51 +0200 Subject: [PATCH] :art: Test missing vm instruction --- tests/import/global_var.c | 3 +++ tests/import/global_var.gw | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/import/global_var.c b/tests/import/global_var.c index 100bdfdd..6d9f9e2e 100644 --- a/tests/import/global_var.c +++ b/tests/import/global_var.c @@ -19,5 +19,8 @@ GWION_IMPORT(global_var_test) { STRING(obj) = s_name(insert_symbol(gwi->gwion->st, "test")); GWI_BB(gwi_item_ini(gwi,"string", "i")) GWI_BB(gwi_item_end(gwi, 0, obj)) + ALLOC_PTR(gwi->gwion->mp, cf, m_float, 2.1); + GWI_BB(gwi_item_ini(gwi,"float", "f")) + GWI_BB(gwi_item_end(gwi, 0, cf)) return GW_OK; } diff --git a/tests/import/global_var.gw b/tests/import/global_var.gw index 276696d1..3e401b0c 100644 --- a/tests/import/global_var.gw +++ b/tests/import/global_var.gw @@ -1 +1,3 @@ <<< i >>>; +<<< "other test" => i >>>; +<<< 12 => f >>>; -- 2.43.0