mirror of https://gitee.com/openkylin/qemu.git
25 lines
438 B
JSON
25 lines
438 B
JSON
##
|
|
# @TestEnum:
|
|
##
|
|
# we require flat union branches to be a struct
|
|
{ 'enum': 'TestEnum',
|
|
'data': [ 'value1', 'value2' ] }
|
|
##
|
|
# @Base:
|
|
##
|
|
{ 'struct': 'Base',
|
|
'data': { 'enum1': 'TestEnum' } }
|
|
##
|
|
# @TestTypeB:
|
|
##
|
|
{ 'struct': 'TestTypeB',
|
|
'data': { 'integer': 'int' } }
|
|
##
|
|
# @TestUnion:
|
|
##
|
|
{ 'union': 'TestUnion',
|
|
'base': 'Base',
|
|
'discriminator': 'enum1',
|
|
'data': { 'value1': ['TestTypeB'],
|
|
'value2': 'TestTypeB' } }
|