aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-23 11:11:02 +0100
committerlemon <lsof@mailbox.org>2026-03-23 11:11:02 +0100
commita77a1e7e451dd5e2c128f5dd001372ade27c5b68 (patch)
tree3c890c04b50027b68d08db38112a38f6ef6ab63e
parent24dafc4cd691c3ec121176dbcd56e78ac6e175b7 (diff)
c: __attribute__ after declarator
-rw-r--r--src/c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/c.c b/src/c.c
index 0feb634..902bff4 100644
--- a/src/c.c
+++ b/src/c.c
@@ -2892,6 +2892,7 @@ pdecl(DeclState *st, CComp *cm) {
return decl;
}
decl = declarator(st, cm, decl.span);
+ while (attrspec(cm, &st->attr)) ;
if (decl.ty.t != TYFUNC && st->fninline)
error(&decl.span, "`inline' used on non-function declaration");
if (decl.ty.t != TYFUNC && st->fnnoreturn)