Commit 12b23fa2 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Check the attributes applied to function declarations.

parent 27a6bb5f
......@@ -2513,8 +2513,9 @@ static statement_t *make_statement_declaration(var_t *var)
if (var->eval)
reg_const(var);
}
else if ((var->stgclass == STG_NONE || var->stgclass == STG_REGISTER) &&
type_get_type(var->type) != TYPE_FUNCTION)
else if (type_get_type(var->type) == TYPE_FUNCTION)
check_function_attrs(var->name, var->attrs);
else if (var->stgclass == STG_NONE || var->stgclass == STG_REGISTER)
error_loc("instantiation of data is illegal\n");
return stmt;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment