mem-prealloc: reduce large guest start-up and migration time.
[qemu/ar7.git] / tests / qapi-schema / flat-union-int-branch.json
blob9603e172f8d61bcf17b126ea25010698dcfac8ac
1 # we require flat union branches to be a struct
3 ##
4 # @TestEnum:
5 ##
6 { 'enum': 'TestEnum',
7   'data': [ 'value1', 'value2' ] }
8 ##
9 # @Base:
11 { 'struct': 'Base',
12   'data': { 'enum1': 'TestEnum' } }
14 # @TestTypeB:
16 { 'struct': 'TestTypeB',
17   'data': { 'integer': 'int' } }
19 # @TestUnion:
21 { 'union': 'TestUnion',
22   'base': 'Base',
23   'discriminator': 'enum1',
24   'data': { 'value1': 'int',
25             'value2': 'TestTypeB' } }