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