summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/struct-base-clash-deep.json
blob: fa873ab5d4e8a75cac7049f391b8185c1f61afde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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' } }