aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/union-branch-if-invalid.json
blob: 859b63b61069293eab545738f6a7c012c3e8eca9 (plain)
1
2
3
4
5
6
7
# Cover branch with invalid 'if'
# FIXME not rejected, would generate '#if \n'
{ 'enum': 'Branches', 'data': ['branch1'] }
{ 'struct': 'Stru', 'data': { 'member': 'str' } }
{ 'union': 'Uni',
  'base': { 'tag': 'Branches' }, 'discriminator': 'tag',
  'data': { 'branch1': { 'type': 'Stru', 'if': [''] } } }