accept "restrict" in array-decl (STDC 199901)

This commit is contained in:
grischka
2009-04-18 15:07:27 +02:00
parent 0e015988cc
commit 5818945ef6
+2
View File
@@ -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();