Don't fail on const/restrict/static/* inside []
commitef668aae1ee2b8bc904c50a13bf58df613b2f0b0
authorPetr Skocik <pskocik@gmail.com>
Fri, 23 Mar 2018 12:19:58 +0000 (23 13:19 +0100)
committerMichael Matz <matz@suse.de>
Sat, 31 Mar 2018 22:48:09 +0000 (1 00:48 +0200)
tree1a35c6702029faafbc37c1a2d7f3944a5ae677cc
parentd6d3cf00ec37368fd885cf50191c87761e6c49e8
Don't fail on const/restrict/static/* inside []

This patch makes tcc ignore them.

Normally (as per the C standard), They should
be only applicable inside parameter arrays
and affect (const/restrict) the pointer the
array gets converted to.

[matz: fix formatting, add volatile handling, add testcase,
add comment about above deficiency]
tccgen.c
tests/tests2/100_c99array-decls.c [new file with mode: 0644]
tests/tests2/100_c99array-decls.expect [new file with mode: 0644]