aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/args-name-clash.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/args-name-clash.json')
-rw-r--r--tests/qapi-schema/args-name-clash.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qapi-schema/args-name-clash.json b/tests/qapi-schema/args-name-clash.json
new file mode 100644
index 0000000000..9e8f88916a
--- /dev/null
+++ b/tests/qapi-schema/args-name-clash.json
@@ -0,0 +1,5 @@
+# C member name collision
+# FIXME - This parses, but fails to compile, because the C struct is given
+# two 'a_b' members. Either reject this at parse time, or munge the C names
+# to avoid the collision.
+{ 'command': 'oops', 'data': { 'a-b': 'str', 'a_b': 'str' } }