summaryrefslogtreecommitdiff
path: root/tests/qapi-schema/reserved-member-u.json
blob: 15005abb09cc06456dcd0ac7db8825efd95d25ba (plain)
1
2
3
4
5
6
7
8
# Potential C member name collision
# We reject use of 'u' as a member name, to allow it for internal use in
# putting union branch members in a separate namespace from QMP members.
# This is true even for non-unions, because it is possible to convert a
# struct to flat union while remaining backwards compatible in QMP.
# TODO - we could munge the member name to 'q_u' to avoid the collision
# BUG: not rejected
{ 'struct': 'Oops', 'data': { '*u': 'str' } }