Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
15 lines
326 B
JSON
15 lines
326 B
JSON
# we reject 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' } }
|