mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 12:23:36 +08:00
75276710ae
The new test demonstrates another generator crash. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
13 lines
364 B
JSON
13 lines
364 B
JSON
# we require flat union branches to be a struct
|
|
{ 'enum': 'TestEnum',
|
|
'data': [ 'value1', 'value2' ] }
|
|
{ 'struct': 'Base',
|
|
'data': { 'enum1': 'TestEnum' } }
|
|
{ 'struct': 'TestTypeB',
|
|
'data': { 'integer': 'int' } }
|
|
{ 'union': 'TestUnion',
|
|
'base': 'Base',
|
|
'discriminator': 'enum1',
|
|
'data': { 'value1': ['TestTypeB'],
|
|
'value2': 'TestTypeB' } }
|