aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-empty.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/flat-union-empty.json')
-rw-r--r--tests/qapi-schema/flat-union-empty.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/qapi-schema/flat-union-empty.json b/tests/qapi-schema/flat-union-empty.json
index 77f1d9abfb..afa8988205 100644
--- a/tests/qapi-schema/flat-union-empty.json
+++ b/tests/qapi-schema/flat-union-empty.json
@@ -1,4 +1,14 @@
# flat unions cannot be empty
+
+##
+# @Empty:
+##
{ 'enum': 'Empty', 'data': [ ] }
+##
+# @Base:
+##
{ 'struct': 'Base', 'data': { 'type': 'Empty' } }
+##
+# @Union:
+##
{ 'union': 'Union', 'base': 'Base', 'discriminator': 'type', 'data': { } }