commit 8ab670292938454e5997391d575fc26d2d9710f0
parent b84c8ba483396a597fb57c5db9b0d764d2484632
Author: Ember Sawady <ecs@d2evs.net>
Date: Tue, 14 Feb 2023 18:47:36 +0000
Allow @symbol with @threadlocal
Signed-off-by: Ember Sawady <ecs@d2evs.net>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/parse.c b/src/parse.c
@@ -2455,6 +2455,11 @@ parse_global_decl(struct lexer *lexer, enum lexical_token mode,
case T_ATTR_SYMBOL:
i->symbol = parse_attr_symbol(lexer);
break;
+ default:
+ unlex(lexer, &tok);
+ break;
+ }
+ switch (lex(lexer, &tok)) {
case T_ATTR_THREADLOCAL:
i->threadlocal = true;
break;