aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/union-base-empty.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/union-base-empty.json')
-rw-r--r--tests/qapi-schema/union-base-empty.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qapi-schema/union-base-empty.json b/tests/qapi-schema/union-base-empty.json
new file mode 100644
index 0000000000..d1843d33b4
--- /dev/null
+++ b/tests/qapi-schema/union-base-empty.json
@@ -0,0 +1,9 @@
+# Flat union with empty base and therefore without discriminator
+
+{ 'struct': 'Empty', 'data': { } }
+
+{ 'union': 'TestUnion',
+ 'base': 'Empty',
+ 'discriminator': 'type',
+ 'data': { 'value1': 'int',
+ 'value2': 'str' } }