aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/doc-bad-enum-member.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/doc-bad-enum-member.json')
-rw-r--r--tests/qapi-schema/doc-bad-enum-member.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qapi-schema/doc-bad-enum-member.json b/tests/qapi-schema/doc-bad-enum-member.json
new file mode 100644
index 0000000000..9f32fe64b4
--- /dev/null
+++ b/tests/qapi-schema/doc-bad-enum-member.json
@@ -0,0 +1,9 @@
+# Members listed in the doc comment must exist in the actual schema
+# BUG: nonexistent @a is not rejected
+
+##
+# @Foo:
+# @a: a
+# @b: b
+##
+{ 'enum': 'Foo', 'data': [ 'b' ] }