From b8f9552d2258cab857fa4fceee8402b9c6d7a5d2 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Sun, 27 Dec 2020 10:49:18 +0100 Subject: Add more array test cases * TAO/tests/IDL_Test/struct.idl: * TAO/tests/IDL_Test/union.idl: --- TAO/tests/IDL_Test/struct.idl | 17 +++++++++++++++++ TAO/tests/IDL_Test/union.idl | 31 +++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/TAO/tests/IDL_Test/struct.idl b/TAO/tests/IDL_Test/struct.idl index bd80df37061..f8b0317d7cc 100644 --- a/TAO/tests/IDL_Test/struct.idl +++ b/TAO/tests/IDL_Test/struct.idl @@ -39,4 +39,21 @@ module Test FooType Foo1; FooType Foo2; }; + + enum S90 + { + S90_1, + S90_2 + }; + typedef S90 S90Array[2]; + typedef long S42[2]; + typedef string SString43[2]; + typedef S4 S4Array[2]; + struct S10 + { + S90 s10_1; + S42 s10_2; + SString43 s10_3; + S4 s10_4; + }; }; diff --git a/TAO/tests/IDL_Test/union.idl b/TAO/tests/IDL_Test/union.idl index 7719a23801b..0ea237b65e2 100644 --- a/TAO/tests/IDL_Test/union.idl +++ b/TAO/tests/IDL_Test/union.idl @@ -279,3 +279,34 @@ union U89 switch (long) { case 1: UBarArray b_87_1; case 2: long b_87_2; }; + +enum U90 +{ + U90_1, + U90_2 +}; + +typedef U90 U90Array[2]; + +union U91 switch (long) { + case 1: U90Array b_91_1; + case 2: long b_92_2; +}; + +union U92 switch (long) { + case 1: UBar b_92_1; + case 2: long b_92_2; + default: UBar b_92_3; +}; + +union U93 switch (long) { + case 1: UBarArray b_93_1; + case 2: long b_93_2; + default: UBarArray b_93_3; +}; + +union U94 switch (long) { + case 1: U90Array b_94_1; + case 2: long b_94_2; + default: U90Array b_94_3; +}; -- cgit v1.2.1