Skip to content

Commit 8073027

Browse files
authored
Merge pull request #1355 from jwillemsen/jwi-idltest
Extend union test IDL with more test cases
2 parents 02e84ff + 69156b0 commit 8073027

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

TAO/tests/IDL_Test/union.idl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,34 @@ union TestUnion switch (short)
248248
case 2: TestTwoEnum twoEnum;
249249
};
250250

251+
typedef long U41[2][3];
252+
typedef long U42[2];
253+
254+
union U85 switch (long) {
255+
case 1: U41 b_85_1;
256+
case 2: U42 b_85_2;
257+
};
258+
259+
typedef string UString[2];
260+
union U86 switch (long) {
261+
case 1: string b_86_1;
262+
case 2: long b_86_2;
263+
};
264+
union U88 switch (long) {
265+
case 1: UString b_86_1;
266+
case 2: long b_86_2;
267+
};
268+
269+
struct UBar {
270+
long foo;
271+
};
272+
typedef UBar UBarArray[2];
273+
274+
union U87 switch (long) {
275+
case 1: UBar b_87_1;
276+
case 2: long b_87_2;
277+
};
278+
union U89 switch (long) {
279+
case 1: UBarArray b_87_1;
280+
case 2: long b_87_2;
281+
};

0 commit comments

Comments
 (0)