Fix @(export) for global variable declarations

This commit is contained in:
gingerBill
2020-04-24 20:42:47 +01:00
parent 026bb8ed6f
commit 9faf292218

View File

@@ -2380,6 +2380,7 @@ DECL_ATTRIBUTE_PROC(var_decl_attribute) {
if (ac->thread_local_model != "") {
error(elem, "An exported variable cannot be thread local");
}
return true;
} else if (name == "link_name") {
if (ev.kind == ExactValue_String) {
ac->link_name = ev.value_string;