]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qapi-schema/union-clash-member.json
hw/riscv: Validate cluster and NUMA node boundary
[mirror_qemu.git] / tests / qapi-schema / union-clash-member.json
CommitLineData
d220fbcd
EB
1# We check for no duplicate keys between branch members and base
2# base's member 'name' clashes with Branch1's
3d0c4829
EB
3{ 'enum': 'TestEnum',
4 'data': [ 'value1', 'value2' ] }
895a2a80 5{ 'struct': 'Base',
ff55d72e 6 'data': { 'enum1': 'TestEnum', '*name': 'str' } }
895a2a80 7{ 'struct': 'Branch1',
3d0c4829 8 'data': { 'name': 'str' } }
895a2a80 9{ 'struct': 'Branch2',
3d0c4829
EB
10 'data': { 'value': 'int' } }
11{ 'union': 'TestUnion',
12 'base': 'Base',
13 'discriminator': 'enum1',
14 'data': { 'value1': 'Branch1',
15 'value2': 'Branch2' } }