summaryrefslogtreecommitdiffstats
path: root/src/tests/qapi-schema/args-name-clash.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/qapi-schema/args-name-clash.json')
-rw-r--r--src/tests/qapi-schema/args-name-clash.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/qapi-schema/args-name-clash.json b/src/tests/qapi-schema/args-name-clash.json
new file mode 100644
index 0000000..9e8f889
--- /dev/null
+++ b/src/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' } }
OpenPOWER on IntegriCloud