mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
8b3b3a16df
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210917143134.412106-23-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com
11 lines
385 B
JSON
11 lines
385 B
JSON
# union 'data' member with dict value is (longhand) branch
|
|
# definition, not inline complex type
|
|
{ 'enum': 'TestEnum',
|
|
'data': [ 'value1', 'value2' ] }
|
|
{ 'struct': 'Base',
|
|
'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
|
|
{ 'union': 'TestUnion',
|
|
'base': 'Base',
|
|
'discriminator': 'enum1',
|
|
'data': { 'value1': { 'string': 'str' },
|
|
'value2': { 'integer': 'int' } } }
|