2015-05-04 17:05:08 +02:00
|
|
|
# we reject normal unions where branches would collide in C
|
2015-05-04 17:05:27 +02:00
|
|
|
{ 'struct': 'One',
|
2015-05-04 17:05:05 +02:00
|
|
|
'data': { 'string': 'str' } }
|
2015-05-04 17:05:27 +02:00
|
|
|
{ 'struct': 'Two',
|
2015-05-04 17:05:05 +02:00
|
|
|
'data': { 'number': 'int' } }
|
|
|
|
{ 'union': 'MyUnion',
|
|
|
|
'data': { 'one': 'One',
|
|
|
|
'ONE': 'Two' } }
|