aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/bad-base.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/bad-base.json')
-rw-r--r--tests/qapi-schema/bad-base.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qapi-schema/bad-base.json b/tests/qapi-schema/bad-base.json
index a634331cdd..c3faa8242b 100644
--- a/tests/qapi-schema/bad-base.json
+++ b/tests/qapi-schema/bad-base.json
@@ -1,3 +1,10 @@
# we reject a base that is not a struct
+
+##
+# @Union:
+##
{ 'union': 'Union', 'data': { 'a': 'int', 'b': 'str' } }
+##
+# @MyType:
+##
{ 'struct': 'MyType', 'base': 'Union', 'data': { 'c': 'int' } }