summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/alternate-nested.json
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/qapi-schema/alternate-nested.json')
-rw-r--r--qemu/tests/qapi-schema/alternate-nested.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu/tests/qapi-schema/alternate-nested.json b/qemu/tests/qapi-schema/alternate-nested.json
new file mode 100644
index 000000000..c4233b9f3
--- /dev/null
+++ b/qemu/tests/qapi-schema/alternate-nested.json
@@ -0,0 +1,5 @@
+# we reject a nested alternate branch
+{ 'alternate': 'Alt1',
+ 'data': { 'name': 'str', 'value': 'int' } }
+{ 'alternate': 'Alt2',
+ 'data': { 'nested': 'Alt1' } }