From: fennecdjay Date: Thu, 10 Oct 2019 13:59:51 +0000 (+0200) Subject: :art: Test missing vm instruction X-Git-Tag: nightly~2198^2~20 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=63461f95ce45bc21cff5a4ea81ec03fd54db37a3;p=gwion.git :art: Test missing vm instruction --- 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 >>>;