mirror of
https://github.com/qemu/qemu.git
synced 2025-08-06 03:44:14 +00:00

Cover invalid 'if' in struct members, features, union and alternate branches. Four out of four are broken. Mark FIXME. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190914153506.2151-6-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> [Comment typo fixed]
8 lines
306 B
JSON
8 lines
306 B
JSON
# Cover branch with invalid 'if'
|
|
# FIXME not rejected, would generate '#if \n'
|
|
{ 'enum': 'Branches', 'data': ['branch1'] }
|
|
{ 'struct': 'Stru', 'data': { 'member': 'str' } }
|
|
{ 'union': 'Uni',
|
|
'base': { 'tag': 'Branches' }, 'discriminator': 'tag',
|
|
'data': { 'branch1': { 'type': 'Stru', 'if': [''] } } }
|