aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/returns-alternate.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/returns-alternate.json')
-rw-r--r--tests/qapi-schema/returns-alternate.json3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qapi-schema/returns-alternate.json b/tests/qapi-schema/returns-alternate.json
new file mode 100644
index 00000000..972390c0
--- /dev/null
+++ b/tests/qapi-schema/returns-alternate.json
@@ -0,0 +1,3 @@
+# we reject returns if it is an alternate type
+{ 'alternate': 'Alt', 'data': { 'a': 'int', 'b': 'str' } }
+{ 'command': 'oops', 'returns': 'Alt' }