blob: 9000b94f1692283a6c31e1040ddc9200c11b8888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# We check for no duplicate keys between branch members and base
# base's member 'name' clashes with Branch1's
##
# @TestEnum:
##
{ 'enum': 'TestEnum',
'data': [ 'value1', 'value2' ] }
##
# @Base:
##
{ 'struct': 'Base',
'data': { 'enum1': 'TestEnum', '*name': 'str' } }
##
# @Branch1:
##
{ 'struct': 'Branch1',
'data': { 'name': 'str' } }
##
# @Branch2:
##
{ 'struct': 'Branch2',
'data': { 'value': 'int' } }
##
# @TestUnion:
##
{ 'union': 'TestUnion',
'base': 'Base',
'discriminator': 'enum1',
'data': { 'value1': 'Branch1',
'value2': 'Branch2' } }
|