Skip to content

Commit

Permalink
Merge pull request #218 from jwillemsen/jwi-extenduniontest
Browse files Browse the repository at this point in the history
Add another IDL test case to the union test
  • Loading branch information
jwillemsen committed May 17, 2022
2 parents 57e8f51 + 1bfaf48 commit 8cc129e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/union/test.idl
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,20 @@ module Test
long willFailHere;
};

union TestUnion_U switch(Color) {
union TestUnion_U1 switch(Color) {
case COLOR_BLUE:
Test::State FirstCase;
case COLOR_RED:
Test::TestStruct SecondCase;
};

union TestUnion_U2 switch(Color) {
case COLOR_RED:
Test::TestStruct SecondCase;
case COLOR_BLUE:
Test::State FirstCase;
};

typedef string<25> first_name_t;
typedef string<10> middle_name_t;
typedef string<40> last_name_t;
Expand Down

0 comments on commit 8cc129e

Please sign in to comment.