1 # Flat union branch 'type'
2 # Reject this, because we would have a clash in generated C, between the
3 # outer tag 'type' and the branch name 'type' within the union.
4 # TODO: We could munge the generated C branch name to let it compile.
8 'data': { 'type': 'TestEnum' } }
10 'data': { 'string': 'str' } }
11 { 'union': 'TestUnion',
13 'discriminator': 'type',
14 'data': { 'type': 'Branch1' } }