aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/features-if-invalid.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/features-if-invalid.json')
-rw-r--r--tests/qapi-schema/features-if-invalid.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qapi-schema/features-if-invalid.json b/tests/qapi-schema/features-if-invalid.json
new file mode 100644
index 0000000..7e4c1ad
--- /dev/null
+++ b/tests/qapi-schema/features-if-invalid.json
@@ -0,0 +1,5 @@
+# Cover feature with invalid 'if'
+# FIXME not rejected, misinterpreted as unconditional
+{ 'struct': 'Stru',
+ 'data': {},
+ 'features': [{'name': 'f', 'if': null }] }