historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/tests/qapi-schema/flat-union-inline.json

12 lines
380 B
JSON
Raw Normal View History

2024-01-16 11:20:27 -06:00
# we require branches to be a struct name
# TODO: should we allow anonymous inline branch types?
{ 'enum': 'TestEnum',
'data': [ 'value1', 'value2' ] }
{ 'struct': 'Base',
'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
{ 'union': 'TestUnion',
'base': 'Base',
'discriminator': 'enum1',
'data': { 'value1': { 'type': {} },
'value2': { 'integer': 'int' } } }