Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[qemu/ar7.git] / tests / qapi-schema / reserved-member-u.json
blob1eaf0f301c68e906d29f82331600dd53c30ee8f4
1 # Potential C member name collision
2 # We reject use of 'u' as a member name, to allow it for internal use in
3 # putting union branch members in a separate namespace from QMP members.
4 # This is true even for non-unions, because it is possible to convert a
5 # struct to flat union while remaining backwards compatible in QMP.
6 # TODO - we could munge the member name to 'q_u' to avoid the collision
7 { 'struct': 'Oops', 'data': { 'u': 'str' } }