summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/union-clash-branches.json
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/qapi-schema/union-clash-branches.json')
-rw-r--r--qemu/tests/qapi-schema/union-clash-branches.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu/tests/qapi-schema/union-clash-branches.json b/qemu/tests/qapi-schema/union-clash-branches.json
new file mode 100644
index 000000000..3bece8c94
--- /dev/null
+++ b/qemu/tests/qapi-schema/union-clash-branches.json
@@ -0,0 +1,5 @@
+# Union branch name collision
+# Reject a union that would result in a collision in generated C names (this
+# would try to generate two members 'a_b').
+{ 'union': 'TestUnion',
+ 'data': { 'a-b': 'int', 'a_b': 'str' } }