Skip to content

Commit

Permalink
Refs #21379. Add test for enumeration literal @value annotation
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Jul 26, 2024
1 parent bb807e1 commit 5209b35
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 5209b35

Please sign in to comment.