fix build & tests
[m6w6/ext-psi] / src / context_validate.c
index cf0695f0138ca19c34c9fd21088dd296295e7d46..45e2d987efba15185e435cae228ae99b3fef9d3d 100644 (file)
@@ -154,6 +154,9 @@ static inline int validate_decl_typedef(PSI_Data *data, decl_arg *def) {
                        def->var->name);
                return 0;
        }
+       if (def->type->type == PSI_T_VOID && def->var->pointer_level) {
+               def->type->type = PSI_T_POINTER;
+       }
        return 1;
 }