Eric Blake | fd41dd4 | 2015-05-04 09:05:25 -0600 | [diff] [blame] | 1 | # we require the base to be an existing struct |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 2 | { 'enum': 'TestEnum', |
| 3 | 'data': [ 'value1', 'value2' ] } |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 4 | { 'struct': 'TestTypeA', |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 5 | 'data': { 'string': 'str' } } |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 6 | { 'struct': 'TestTypeB', |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 7 | 'data': { 'integer': 'int' } } |
| 8 | { 'union': 'TestUnion', |
Markus Armbruster | 28770e0 | 2015-09-16 13:06:24 +0200 | [diff] [blame] | 9 | 'base': 'any', |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 10 | 'discriminator': 'enum1', |
| 11 | 'data': { 'value1': 'TestTypeA', |
| 12 | 'value2': 'TestTypeB' } } |