Projet_SETI_RISC-V/riscv-gnu-toolchain/qemu/tests/qapi-schema/union-base-no-discriminator.json
2023-03-06 14:48:14 +01:00

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' } }