diff options
Diffstat (limited to 'qemu/tests/qapi-schema/reserved-member-has.json')
-rw-r--r-- | qemu/tests/qapi-schema/reserved-member-has.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu/tests/qapi-schema/reserved-member-has.json b/qemu/tests/qapi-schema/reserved-member-has.json new file mode 100644 index 000000000..45b9109bd --- /dev/null +++ b/qemu/tests/qapi-schema/reserved-member-has.json @@ -0,0 +1,5 @@ +# C member name collision +# We reject names like 'has-a', because they can collide with the flag +# for an optional 'a' in generated C. +# TODO we could munge the optional flag name to avoid the collision. +{ 'command': 'oops', 'data': { '*a': 'str', 'has-a': 'str' } } |