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

15 lines
486 B
JSON

# We check for no duplicate keys between branch members and base
# base's member 'name' clashes with Branch1's
{ 'enum': 'TestEnum',
'data': [ 'value1', 'value2' ] }
{ 'struct': 'Base',
'data': { 'enum1': 'TestEnum', '*name': 'str' } }
{ 'struct': 'Branch1',
'data': { 'name': 'str' } }
{ 'struct': 'Branch2',
'data': { 'value': 'int' } }
{ 'union': 'TestUnion',
'base': 'Base',
'discriminator': 'enum1',
'data': { 'value1': 'Branch1',
'value2': 'Branch2' } }