Skip to content

Commit

Permalink
Add test for enumeration literal @value annotation (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware authored Sep 26, 2024
1 parent 046b97d commit c856b24
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions IDL/enumerations.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ module Test
};
};

enum EnumWithValues
{
@value(-3)
ENUM_VALUE1,
@value(0)
ENUM_VALUE2,
@value(3)
ENUM_VALUE3
};

struct EnumStructure
{
InnerEnumHelper var_InnerEnumHelper;
Expand All @@ -25,3 +35,8 @@ struct BoundedBitMaskStructure
{
InnerBoundedBitMaskHelper var_InnerBoundedBitMaskHelper;
};

struct EnumWithValuesStructure
{
EnumWithValues var_enumwithvalues;
};

0 comments on commit c856b24

Please sign in to comment.