mirror of https://gitee.com/openkylin/qemu.git
15 lines
362 B
JSON
15 lines
362 B
JSON
# we reject simple unions with a base (or flat unions without discriminator)
|
|
{ 'struct': 'TestTypeA',
|
|
'data': { 'string': 'str' } }
|
|
|
|
{ 'struct': 'TestTypeB',
|
|
'data': { 'integer': 'int' } }
|
|
|
|
{ 'struct': 'Base',
|
|
'data': { 'string': 'str' } }
|
|
|
|
{ 'union': 'TestUnion',
|
|
'base': 'Base',
|
|
'data': { 'value1': 'TestTypeA',
|
|
'value2': 'TestTypeB' } }
|