Fix misparsed type in presence of attributes
commit22420ee1ee7a0bffcb694c8e2d24264ddb606958
authorMichael Matz <matz@suse.de>
Sat, 28 Jul 2018 16:55:54 +0000 (28 18:55 +0200)
committerMichael Matz <matz@suse.de>
Sat, 28 Jul 2018 16:55:54 +0000 (28 18:55 +0200)
tree1030df06f7360b69edcff10122fc302941f46db3
parent0edbed1d52aa8a5604002108232dc72c92b873e9
Fix misparsed type in presence of attributes

The type within the cast (int (__attribute__((foo)) *)(void))
was misparsed because of the presence of the attribute (parse_btype
prematurely concluded that (__attribute__() *) is a type.

Also see testcase.  This construct is used in sqlite it seems.
tccgen.c
tests/tests2/82_attribs_position.c
tests/tests2/82_attribs_position.expect