tests: add enum bitfield test

Signed-off-by: Simon Ser <contact@emersion.fr>
(cherry picked from commit fa1811ce3e)
This commit is contained in:
Simon Ser 2024-07-07 18:48:44 +02:00
parent f72f2aec55
commit 619d99cbba
6 changed files with 150 additions and 0 deletions

View file

@ -58,5 +58,12 @@
<entry name="negative" value="-1" since="2" summary="this is a negative value"/>
<entry name="deprecated" value="3" since="2" deprecated-since="3" summary="this is a deprecated value"/>
</enum>
<enum name="bar" bitfield="true">
<entry name="first" value="0x01" summary="this is the first"/>
<entry name="second" value="0x02" summary="this is the second"/>
<entry name="third" value="0x04" since="2" summary="this is the third"/>
</enum>
</interface>
</protocol>