From 5818945ef69b4182c178704aa2c02446e739532e Mon Sep 17 00:00:00 2001 From: grischka Date: Fri, 3 Apr 2009 20:52:01 +0200 Subject: [PATCH] accept "restrict" in array-decl (STDC 199901) --- tcc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcc.c b/tcc.c index c448a03c..2a2b82e3 100644 --- a/tcc.c +++ b/tcc.c @@ -7323,6 +7323,8 @@ static void post_type(CType *type, AttributeDef *ad) } else if (tok == '[') { /* array definition */ next(); + if (tok == TOK_RESTRICT1) + next(); n = -1; if (tok != ']') { n = expr_const();