summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/alternate-conflict-string.json
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/qapi-schema/alternate-conflict-string.json')
-rw-r--r--qemu/tests/qapi-schema/alternate-conflict-string.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu/tests/qapi-schema/alternate-conflict-string.json b/qemu/tests/qapi-schema/alternate-conflict-string.json
new file mode 100644
index 000000000..72f04a820
--- /dev/null
+++ b/qemu/tests/qapi-schema/alternate-conflict-string.json
@@ -0,0 +1,6 @@
+# we reject alternates with multiple string-like branches
+{ 'enum': 'Enum',
+ 'data': [ 'hello', 'world' ] }
+{ 'alternate': 'Alt',
+ 'data': { 'one': 'str',
+ 'two': 'Enum' } }