mirror of https://gitee.com/openkylin/qemu.git
10 lines
233 B
JSON
10 lines
233 B
JSON
|
# Flat union with empty base and therefore without discriminator
|
||
|
|
||
|
{ 'struct': 'Empty', 'data': { } }
|
||
|
|
||
|
{ 'union': 'TestUnion',
|
||
|
'base': 'Empty',
|
||
|
'discriminator': 'type',
|
||
|
'data': { 'value1': 'int',
|
||
|
'value2': 'str' } }
|