summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/args-union.json
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/qapi-schema/args-union.json')
-rw-r--r--qemu/tests/qapi-schema/args-union.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu/tests/qapi-schema/args-union.json b/qemu/tests/qapi-schema/args-union.json
new file mode 100644
index 000000000..7bdcbb7f0
--- /dev/null
+++ b/qemu/tests/qapi-schema/args-union.json
@@ -0,0 +1,4 @@
+# we do not allow union arguments
+# TODO should we support this?
+{ 'union': 'Uni', 'data': { 'case1': 'int', 'case2': 'str' } }
+{ 'command': 'oops', 'data': 'Uni' }