aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/reserved-member-q.json
blob: 1602ed3281f1a7b02e53a0bb9c34383dabb5efca (plain)
1
2
3
4
5
6
# C member name collision
# FIXME - This parses, but fails to compile, because it attempts to declare
# two 'q_unix' members (one for 'q-unix', the other because c_name()
# munges 'unix' to 'q_unix' to avoid reserved word collisions). We should
# reject attempts to explicitly use 'q_' names, to reserve it for qapi.
{ 'struct': 'Foo', 'data': { 'unix':'int', 'q-unix':'bool' } }