From 2defa4b988559e38b21c0f5a46624ba58f64c9b4 Mon Sep 17 00:00:00 2001 From: adriancampo Date: Mon, 25 Mar 2024 10:45:20 +0100 Subject: [PATCH] Refs #20421: Added cases for unions Signed-off-by: adriancampo --- IDL/structures.idl | 24 +++++++------- IDL/unions.idl | 82 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 12 deletions(-) diff --git a/IDL/structures.idl b/IDL/structures.idl index d46b4f7..13fca40 100644 --- a/IDL/structures.idl +++ b/IDL/structures.idl @@ -170,51 +170,51 @@ struct StructShortBis short var_short; }; -struct ContentSeqStruct { +struct ContentStructSeqStruct { sequence var_seq; }; -struct ContentSeqStructBis { +struct ContentStructSeqStructBis { sequence var_seq; }; -struct ContentBigSeqStruct { +struct ContentStructBigSeqStruct { sequence var_seq; }; -struct ContentBigSeqStructBis { +struct ContentStructBigSeqStructBis { sequence var_seq; }; -struct ContentMapStruct { +struct ContentStructMapStruct { map var_map; }; -struct ContentMapStructBis { +struct ContentStructMapStructBis { map var_map; }; -struct ContentBigMapStruct { +struct ContentStructBigMapStruct { map var_map; }; -struct ContentBigMapStructBis { +struct ContentStructBigMapStructBis { map var_map; }; -struct ContentArrayStruct { +struct ContentStructArrayStruct { StructShort var_array[10]; }; -struct ContentArrayStructBis { +struct ContentStructArrayStructBis { StructShortBis var_array[10]; }; -struct ContentBigArrayStruct { +struct ContentStructBigArrayStruct { StructShort var_array[1000]; }; -struct ContentBigArrayStructBis { +struct ContentStructBigArrayStructBis { StructShortBis var_array[1000]; }; diff --git a/IDL/unions.idl b/IDL/unions.idl index ad9ac3f..fb07d9a 100644 --- a/IDL/unions.idl +++ b/IDL/unions.idl @@ -293,6 +293,88 @@ union Union_Several_Fields_With_Default switch (long) sequence f; }; +struct StructForUnionTest +{ + short var_short; +}; + +struct StructForUnionTestBis +{ + short var_short; +}; + +union ContentUnionSeq switch (long) +{ + case 0: + sequence a; +}; + +union ContentUnionSeqBis switch (long) +{ + case 0: + sequence a; +}; + +union ContentUnionBigSeq switch (long) +{ + case 0: + sequence a; +}; + +union ContentUnionBigSeqBis switch (long) +{ + case 0: + sequence a; +}; + +union ContentUnionMap switch (long) +{ + case 0: + map a; +}; + +union ContentUnionMapBis switch (long) +{ + case 0: + map a; +}; + +union ContentUnionBigMap switch (long) +{ + case 0: + map a; +}; + +union ContentUnionBigMapBis switch (long) +{ + case 0: + map a; +}; + +union ContentUnionArray switch (long) +{ + case 0: + StructForUnionTest a[10]; +}; + +union ContentUnionArrayBis switch (long) +{ + case 0: + StructForUnionTestBis a[10]; +}; + +union ContentUnionBigArray switch (long) +{ + case 0: + StructForUnionTest a[1000]; +}; + +union ContentUnionBigArrayBis switch (long) +{ + case 0: + StructForUnionTestBis a[1000]; +}; + struct UnionShort { Union_Short var_union_short;