]> Nishi Git Mirror - gwion.git/commitdiff
:art: Test missing vm instruction
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 13:59:51 +0000 (15:59 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 13:59:51 +0000 (15:59 +0200)
tests/import/global_var.c
tests/import/global_var.gw

index 100bdfdd50fee779605ed2f8009e1adea6e1dacc..6d9f9e2e0afa4a4185e809caac8bee8ea8ab43b6 100644 (file)
@@ -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;
 }
index 276696d15b5cd67be4bfb22351ac63e3889113de..3e401b0c3af2f749df96a57e9a972f51c7416bf6 100644 (file)
@@ -1 +1,3 @@
 <<< i >>>;
+<<< "other test" => i >>>;
+<<< 12 => f >>>;