blob: 9efc7719b859053078223ed4e8555fbb2a209b5e [file] [log] [blame]
Eric Blaked220fbc2015-09-29 16:21:03 -06001# We check for no duplicate keys between branch members and base
2# base's member 'name' clashes with Branch1's
Eric Blake3d0c4822015-05-04 09:05:05 -06003{ 'enum': 'TestEnum',
4 'data': [ 'value1', 'value2' ] }
Eric Blake895a2a82015-05-04 09:05:27 -06005{ 'struct': 'Base',
Eric Blakeff55d722015-05-04 09:05:37 -06006 'data': { 'enum1': 'TestEnum', '*name': 'str' } }
Eric Blake895a2a82015-05-04 09:05:27 -06007{ 'struct': 'Branch1',
Eric Blake3d0c4822015-05-04 09:05:05 -06008 'data': { 'name': 'str' } }
Eric Blake895a2a82015-05-04 09:05:27 -06009{ 'struct': 'Branch2',
Eric Blake3d0c4822015-05-04 09:05:05 -060010 'data': { 'value': 'int' } }
Eric Blake3d0c4822015-05-04 09:05:05 -060011{ 'union': 'TestUnion',
12 'base': 'Base',
13 'discriminator': 'enum1',
14 'data': { 'value1': 'Branch1',
15 'value2': 'Branch2' } }