aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/alternate-array.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/alternate-array.json')
-rw-r--r--tests/qapi-schema/alternate-array.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qapi-schema/alternate-array.json b/tests/qapi-schema/alternate-array.json
new file mode 100644
index 00000000..f241aac1
--- /dev/null
+++ b/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' ] } }