Add qemu 2.4.0
[kvmfornfv.git] / qemu / tests / qapi-schema / flat-union-bad-base.json
1 # we require the base to be an existing struct
2 # TODO: should we allow an anonymous inline base type?
3 { 'enum': 'TestEnum',
4   'data': [ 'value1', 'value2' ] }
5 { 'struct': 'TestTypeA',
6   'data': { 'string': 'str' } }
7 { 'struct': 'TestTypeB',
8   'data': { 'integer': 'int' } }
9 { 'union': 'TestUnion',
10   'base': { 'enum1': 'TestEnum', 'kind': 'str' },
11   'discriminator': 'enum1',
12   'data': { 'value1': 'TestTypeA',
13             'value2': 'TestTypeB' } }