accept "restrict" in array-decl (STDC 199901)
This commit is contained in:
2
tcc.c
2
tcc.c
@ -7323,6 +7323,8 @@ static void post_type(CType *type, AttributeDef *ad)
|
|||||||
} else if (tok == '[') {
|
} else if (tok == '[') {
|
||||||
/* array definition */
|
/* array definition */
|
||||||
next();
|
next();
|
||||||
|
if (tok == TOK_RESTRICT1)
|
||||||
|
next();
|
||||||
n = -1;
|
n = -1;
|
||||||
if (tok != ']') {
|
if (tok != ']') {
|
||||||
n = expr_const();
|
n = expr_const();
|
||||||
|
|||||||
Reference in New Issue
Block a user