aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/reserved-enum-q.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/reserved-enum-q.json')
-rw-r--r--tests/qapi-schema/reserved-enum-q.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qapi-schema/reserved-enum-q.json b/tests/qapi-schema/reserved-enum-q.json
new file mode 100644
index 0000000..3593a76
--- /dev/null
+++ b/tests/qapi-schema/reserved-enum-q.json
@@ -0,0 +1,4 @@
+# C entity name collision
+# We reject names like 'q-unix', because they can collide with the mangled
+# name for 'unix' in generated C.
+{ 'enum': 'Foo', 'data': [ 'unix', 'q-Unix' ] }