summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/alternate-array.json
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/qapi-schema/alternate-array.json')
-rw-r--r--qemu/tests/qapi-schema/alternate-array.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu/tests/qapi-schema/alternate-array.json b/qemu/tests/qapi-schema/alternate-array.json
new file mode 100644
index 000000000..f241aac12
--- /dev/null
+++ b/qemu/tests/qapi-schema/alternate-array.json
@@ -0,0 +1,7 @@
+# we do not allow array branches in alternates
+# TODO: should we support this?
+{ 'struct': 'One',
+ 'data': { 'name': 'str' } }
+{ 'alternate': 'Alt',
+ 'data': { 'one': 'One',
+ 'two': [ 'int' ] } }