From: Jérémie Astor Date: Sat, 9 May 2020 19:57:02 +0000 (+0200) Subject: :wrench: op already imported X-Git-Tag: nightly~1606 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9628cc6a543127663ff3b1e92070faafce739338;p=gwion.git :wrench: op already imported --- diff --git a/tests/import/op_already_imported.c b/tests/import/op_already_imported.c index 1b3eec5e..0454a3f1 100644 --- a/tests/import/op_already_imported.c +++ b/tests/import/op_already_imported.c @@ -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 index 00000000..49a9fcd8 --- /dev/null +++ b/tests/struct/struct_template.gw @@ -0,0 +1,10 @@ +struct <~A~> S{ + A a0; + A a1; +} + +<~int~>S si; +<~float~>S sf; + +<<< si.a0 >>>; +<<< sf.a0 >>>;