aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-clash-member.json
blob: 9efc7719b859053078223ed4e8555fbb2a209b5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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' } }