Eric Blake | c9e0a79 | 2015-05-04 09:05:22 -0600 | [diff] [blame] | 1 | # we require the discriminator to be non-optional |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 2 | { 'enum': 'Enum', 'data': [ 'one', 'two' ] } |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 3 | { 'struct': 'Base', |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 4 | 'data': { '*switch': 'Enum' } } |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 5 | { 'struct': 'Branch', 'data': { 'name': 'str' } } |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 6 | { 'union': 'MyUnion', |
| 7 | 'base': 'Base', |
Markus Armbruster | cd346bd | 2019-09-14 17:34:50 +0200 | [diff] [blame] | 8 | 'discriminator': 'switch', |
Eric Blake | 3d0c482 | 2015-05-04 09:05:05 -0600 | [diff] [blame] | 9 | 'data': { 'one': 'Branch', |
| 10 | 'two': 'Branch' } } |