Eric Blake | d220fbc | 2015-09-29 16:21:03 -0600 | [diff] [blame] | 1 | # We check for no duplicate keys between branch members and base |
| 2 | # base's member 'name' clashes with Branch1's |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 3 | { 'enum': 'TestEnum', |
| 4 | 'data': [ 'value1', 'value2' ] } |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 5 | { 'struct': 'Base', |
Eric Blake | ff55d72 | 2015-05-04 09:05:37 -0600 | [diff] [blame] | 6 | 'data': { 'enum1': 'TestEnum', '*name': 'str' } } |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 7 | { 'struct': 'Branch1', |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 8 | 'data': { 'name': 'str' } } |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 9 | { 'struct': 'Branch2', |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 10 | 'data': { 'value': 'int' } } |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 11 | { 'union': 'TestUnion', |
| 12 | 'base': 'Base', |
| 13 | 'discriminator': 'enum1', |
| 14 | 'data': { 'value1': 'Branch1', |
| 15 | 'value2': 'Branch2' } } |