add test cases for storage of c99 for-loop declarations
commitb3e3bc46550a3904e5ef5e6ce578339c6a3b84ea
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 5 Mar 2017 19:21:49 +0000 (5 20:21 +0100)
committerChristopher Li <sparse@chrisli.org>
Mon, 6 Mar 2017 00:48:35 +0000 (6 08:48 +0800)
tree23701c8a6810c7fcc6701f9bbf8bd05f4dc50101
parent9af83dd11730f0a384106b0944b5982d539e59ff
add test cases for storage of c99 for-loop declarations

Variable declared inside a C99 for-loop must have register
or automatic storage; static & extern storage are invalid.
These test cases verify that we warns if it is not the case.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
validation/c99-for-loop-decl.c