historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/tests/qapi-schema/struct-base-clash-deep.json
2024-01-16 11:20:27 -06:00

12 lines
394 B
JSON

# Reject attempts to duplicate QMP members
# Here, 'name' would have to appear twice on the wire, locally and
# indirectly for the grandparent base; the collision doesn't care that
# one instance is optional.
{ 'struct': 'Base',
'data': { 'name': 'str' } }
{ 'struct': 'Mid',
'base': 'Base',
'data': { 'value': 'int' } }
{ 'struct': 'Sub',
'base': 'Mid',
'data': { '*name': 'str' } }