aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/union-clash-branches.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/union-clash-branches.json')
-rw-r--r--tests/qapi-schema/union-clash-branches.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qapi-schema/union-clash-branches.json b/tests/qapi-schema/union-clash-branches.json
new file mode 100644
index 0000000000..31d135fb17
--- /dev/null
+++ b/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 enum values 'TEST_UNION_KIND_A_B').
+{ 'union': 'TestUnion',
+ 'data': { 'a-b': 'int', 'a_b': 'str' } }