summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/doc-bad-feature.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/doc-bad-feature.json')
-rw-r--r--tests/qapi-schema/doc-bad-feature.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/qapi-schema/doc-bad-feature.json b/tests/qapi-schema/doc-bad-feature.json
new file mode 100644
index 0000000000..2a78e3b1db
--- /dev/null
+++ b/tests/qapi-schema/doc-bad-feature.json
@@ -0,0 +1,10 @@
+# Features listed in the doc comment must exist in the actual schema
+# BUG: nonexistent @a is not rejected
+
+##
+# @foo:
+#
+# Features:
+# @a: a
+##
+{ 'command': 'foo' }