Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
11 lines
329 B
JSON
11 lines
329 B
JSON
# we require the discriminator to be non-optional
|
|
{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
|
|
{ 'struct': 'Base',
|
|
'data': { '*switch': 'Enum' } }
|
|
{ 'struct': 'Branch', 'data': { 'name': 'str' } }
|
|
{ 'union': 'MyUnion',
|
|
'base': 'Base',
|
|
'discriminator': 'switch',
|
|
'data': { 'one': 'Branch',
|
|
'two': 'Branch' } }
|