]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: op already imported
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 9 May 2020 19:57:02 +0000 (21:57 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 9 May 2020 19:57:02 +0000 (21:57 +0200)
tests/import/op_already_imported.c
tests/struct/struct_template.gw [new file with mode: 0644]

index 1b3eec5e71a939b1f6274cee680f25ac40307353..0454a3f1ad40917de42b1c6bb3534a14f0860f38 100644 (file)
@@ -13,6 +13,8 @@
 
 
 GWION_IMPORT(op_already_imported) {
+  GWI_BB(gwi_oper_ini(gwi, "int", "int", "int"))
+  GWI_BB(gwi_oper_end(gwi, "=>", NULL))
   GWI_BB(gwi_oper_ini(gwi, "int", "int", "int"))
   GWI_BB(gwi_oper_end(gwi, "=>", NULL))
   return GW_OK;
diff --git a/tests/struct/struct_template.gw b/tests/struct/struct_template.gw
new file mode 100644 (file)
index 0000000..49a9fcd
--- /dev/null
@@ -0,0 +1,10 @@
+struct <~A~> S{
+  A a0;
+  A a1;
+}
+
+<~int~>S si;
+<~float~>S sf;
+
+<<< si.a0 >>>;
+<<< sf.a0 >>>;