blob: 92be39df69ae7fce191f5113fb82f2be3fd80157 [file] [log] [blame]
Eric Blake3d0c4822015-05-04 09:05:05 -06001# a union base type must be a struct
Eric Blake895a2a82015-05-04 09:05:27 -06002{ 'struct': 'TestTypeA',
Wenchao Xiab86b05e2014-03-04 18:44:34 -08003 'data': { 'string': 'str' } }
4
Eric Blake895a2a82015-05-04 09:05:27 -06005{ 'struct': 'TestTypeB',
Wenchao Xiab86b05e2014-03-04 18:44:34 -08006 'data': { 'integer': 'int' } }
7
8{ 'union': 'TestUnion',
Eric Blake3d0c4822015-05-04 09:05:05 -06009 'base': 'int',
10 'discriminator': 'int',
Wenchao Xiab86b05e2014-03-04 18:44:34 -080011 'data': { 'value1': 'TestTypeA',
12 'value2': 'TestTypeB' } }