summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-12-24 13:36:37 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-12-24 13:36:37 +0100
commit8713609b5e3f3b659a1ebf12948501090b2441df (patch)
tree44c1690c369373d5c5c59aa49894ecf78e3f409d
parent911d5bcfe1d95c64430813ab68e6bdbed78cff96 (diff)
downloadATCD-8713609b5e3f3b659a1ebf12948501090b2441df.tar.gz
Extend union test IDL with more test cases
* TAO/tests/IDL_Test/union.idl:
-rw-r--r--TAO/tests/IDL_Test/union.idl21
1 files changed, 21 insertions, 0 deletions
diff --git a/TAO/tests/IDL_Test/union.idl b/TAO/tests/IDL_Test/union.idl
index a948800268a..1ca3c15b979 100644
--- a/TAO/tests/IDL_Test/union.idl
+++ b/TAO/tests/IDL_Test/union.idl
@@ -248,3 +248,24 @@ union TestUnion switch (short)
case 2: TestTwoEnum twoEnum;
};
+typedef long U41[2][3];
+typedef long U42[2];
+
+union U85 switch (long) {
+ case 1: U41 b_85_1;
+ case 2: U42 b_85_2;
+};
+
+union U86 switch (long) {
+ case 1: string b_86_1;
+ case 2: long b_86_2;
+};
+
+struct UBar {
+ long foo;
+};
+
+union U87 switch (long) {
+ case 1: UBar b_87_1;
+ case 2: long b_87_2;
+};