aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/reserved-command-q.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/reserved-command-q.json')
-rw-r--r--tests/qapi-schema/reserved-command-q.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qapi-schema/reserved-command-q.json b/tests/qapi-schema/reserved-command-q.json
new file mode 100644
index 0000000000..be9944c68a
--- /dev/null
+++ b/tests/qapi-schema/reserved-command-q.json
@@ -0,0 +1,7 @@
+# C entity name collision
+# FIXME - This parses, but fails to compile, because it attempts to declare
+# two 'qmp_q_unix' functions (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.
+{ 'command': 'unix' }
+{ 'command': 'q-unix' }