From 9628cc6a543127663ff3b1e92070faafce739338 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 9 May 2020 21:57:02 +0200 Subject: [PATCH] :wrench: op already imported --- tests/import/op_already_imported.c | 2 ++ tests/struct/struct_template.gw | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/struct/struct_template.gw 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 >>>; -- 2.43.0