accept "restrict" in array-decl (STDC 199901)
This commit is contained in:
parent
0e015988cc
commit
5818945ef6
1 changed files with 2 additions and 0 deletions
2
tcc.c
2
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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue