Skip to content

Commit 541805c

Browse files
authored
Merge pull request #1356 from jwillemsen/jwi-idltest
Add more array test cases
2 parents 8073027 + b8f9552 commit 541805c

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

TAO/tests/IDL_Test/struct.idl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,21 @@ module Test
3939
FooType Foo1;
4040
FooType Foo2;
4141
};
42+
43+
enum S90
44+
{
45+
S90_1,
46+
S90_2
47+
};
48+
typedef S90 S90Array[2];
49+
typedef long S42[2];
50+
typedef string SString43[2];
51+
typedef S4 S4Array[2];
52+
struct S10
53+
{
54+
S90 s10_1;
55+
S42 s10_2;
56+
SString43 s10_3;
57+
S4 s10_4;
58+
};
4259
};

TAO/tests/IDL_Test/union.idl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,3 +279,34 @@ union U89 switch (long) {
279279
case 1: UBarArray b_87_1;
280280
case 2: long b_87_2;
281281
};
282+
283+
enum U90
284+
{
285+
U90_1,
286+
U90_2
287+
};
288+
289+
typedef U90 U90Array[2];
290+
291+
union U91 switch (long) {
292+
case 1: U90Array b_91_1;
293+
case 2: long b_92_2;
294+
};
295+
296+
union U92 switch (long) {
297+
case 1: UBar b_92_1;
298+
case 2: long b_92_2;
299+
default: UBar b_92_3;
300+
};
301+
302+
union U93 switch (long) {
303+
case 1: UBarArray b_93_1;
304+
case 2: long b_93_2;
305+
default: UBarArray b_93_3;
306+
};
307+
308+
union U94 switch (long) {
309+
case 1: U90Array b_94_1;
310+
case 2: long b_94_2;
311+
default: U90Array b_94_3;
312+
};

0 commit comments

Comments
 (0)