]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Fix pass test
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Wed, 16 Sep 2020 14:54:53 +0000 (16:54 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Wed, 16 Sep 2020 14:54:53 +0000 (16:54 +0200)
tests/import/pass.c

index 72be714647fd7f61aab3cb8ca1643bb1029d84f5..5406288621448731b66291eac753788d2c689f8d 100644 (file)
@@ -13,7 +13,9 @@ ANN static m_bool pass(Env nv NUSED, Ast ast NUSED) {
   return GW_OK;
 }
 
+static compilation_pass passes[2] = { pass, NULL };
 GWION_IMPORT(array_test) {
-  gwi_register_pass(gwi, "dummy", pass);
+
+  gwi_register_pass(gwi, "dummy", passes);
   return GW_OK;
 }