summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/alternate-base.json
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/qapi-schema/alternate-base.json')
-rw-r--r--qemu/tests/qapi-schema/alternate-base.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu/tests/qapi-schema/alternate-base.json b/qemu/tests/qapi-schema/alternate-base.json
new file mode 100644
index 000000000..529430ecf
--- /dev/null
+++ b/qemu/tests/qapi-schema/alternate-base.json
@@ -0,0 +1,6 @@
+# we reject alternate with base type
+{ 'struct': 'Base',
+ 'data': { 'string': 'str' } }
+{ 'alternate': 'Alt',
+ 'base': 'Base',
+ 'data': { 'number': 'int' } }