diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-27 10:49:18 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-27 10:49:18 +0100 |
commit | b8f9552d2258cab857fa4fceee8402b9c6d7a5d2 (patch) | |
tree | 5681fe0c9aa0373e53d89d881f1f5265fbdb6027 /TAO | |
parent | 69156b0c6d64aa79ab27d2450e405a3bb458643c (diff) | |
download | ATCD-b8f9552d2258cab857fa4fceee8402b9c6d7a5d2.tar.gz |
Add more array test cases
* TAO/tests/IDL_Test/struct.idl:
* TAO/tests/IDL_Test/union.idl:
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/tests/IDL_Test/struct.idl | 17 | ||||
-rw-r--r-- | TAO/tests/IDL_Test/union.idl | 31 |
2 files changed, 48 insertions, 0 deletions
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; +}; |