aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/alternate-branch-if-invalid.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/alternate-branch-if-invalid.json')
-rw-r--r--tests/qapi-schema/alternate-branch-if-invalid.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qapi-schema/alternate-branch-if-invalid.json b/tests/qapi-schema/alternate-branch-if-invalid.json
new file mode 100644
index 0000000000..6497f53475
--- /dev/null
+++ b/tests/qapi-schema/alternate-branch-if-invalid.json
@@ -0,0 +1,4 @@
+# Cover alternative with invalid 'if'
+# FIXME not rejected, would generate '#if \n'
+{ 'alternate': 'Alt',
+ 'data': { 'branch': { 'type': 'int', 'if': ' ' } } }