summaryrefslogblamecommitdiffstats
path: root/tests/qapi-schema/union-clash-branches.json
blob: 7bdda0b0da8009bf124d1f8eefcacd9406f3c0ae (plain) (tree)
1
2
3
4
5
6
7
                             



                                                                    

                                          
# Union branch name collision
# Naming rules make collision impossible (even with the pragma).  If
# that wasn't the case, then we'd get collisions in generated C: two
# union members a_b, and two enum members TEST_UNION_A_B.
{ 'pragma': { 'member-name-exceptions': [ 'TestUnion' ] } }
{ 'union': 'TestUnion',
  'data': { 'a-b': 'int', 'a_b': 'str' } }