aboutsummaryrefslogtreecommitdiff
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.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qapi-schema/alternate-base.json b/tests/qapi-schema/alternate-base.json
new file mode 100644
index 0000000000..2d36db1835
--- /dev/null
+++ b/tests/qapi-schema/alternate-base.json
@@ -0,0 +1,7 @@
+# FIXME: we should reject anonymous union with base type
+{ 'type': 'Base',
+ 'data': { 'string': 'str' } }
+{ 'union': 'MyUnion',
+ 'base': 'Base',
+ 'discriminator': {},
+ 'data': { 'number': 'int' } }