summaryrefslogblamecommitdiffstats
path: root/tests/qapi-schema/union-branch-if-invalid.json
blob: c41633856f4787d7d7bb8961f29ec17c11449f7c (plain) (tree)
1
2
3
4
5
6
                                



                                                        
                                                                    
# Cover branch with invalid 'if'
{ 'enum': 'Branches', 'data': ['branch1'] }
{ 'struct': 'Stru', 'data': { 'member': 'str' } }
{ 'union': 'Uni',
  'base': { 'tag': 'Branches' }, 'discriminator': 'tag',
  'data': { 'branch1': { 'type': 'Stru', 'if': { 'all': [''] } } } }