Fix type parsing
commitf85db99ff0b48b5837fa985dcf9c58190b35f96a
authorMichael Matz <matz@suse.de>
Thu, 24 Mar 2016 14:44:01 +0000 (24 15:44 +0100)
committerMichael Matz <matz@suse.de>
Thu, 24 Mar 2016 14:44:01 +0000 (24 15:44 +0100)
treefdd6e4674aaae43b8fce39a08e581ab4c27c43b4
parentaa1ed616eb01efe353e7c5e829fffbed01b428bd
Fix type parsing

the check on incomplete struct/union/enum types was too early,
disallowing mixed specifiers and qualifiers.  Simply rely on
the size (->c) field for that.  See testcases.
tccgen.c
tests/tests2/61_undefined_enum.expect
tests/tests2/81_types.c [new file with mode: 0644]
tests/tests2/81_types.expect [new file with mode: 0644]