aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-04-03 20:52:01 +0200
committergrischka <grischka>2009-04-18 15:07:27 +0200
commit5818945ef69b4182c178704aa2c02446e739532e (patch)
tree543f0b2dfe6c983f60d6be2ff3e85a4a87907191 /tcc.c
parent0e015988cc5d8392b8ec2fb22e54700b225f84e3 (diff)
downloadtinycc-5818945ef69b4182c178704aa2c02446e739532e.tar.gz
tinycc-5818945ef69b4182c178704aa2c02446e739532e.tar.bz2
accept "restrict" in array-decl (STDC 199901)
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcc.c b/tcc.c
index c448a03..2a2b82e 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();