diff options
Diffstat (limited to 'TAO/tests/IDL_Test/union.idl')
-rw-r--r-- | TAO/tests/IDL_Test/union.idl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/TAO/tests/IDL_Test/union.idl b/TAO/tests/IDL_Test/union.idl index f2e88ae05c6..30064ac3360 100644 --- a/TAO/tests/IDL_Test/union.idl +++ b/TAO/tests/IDL_Test/union.idl @@ -236,3 +236,36 @@ union TestUnion switch (short) case 2: TestTwoEnum twoEnum; }; +// Test for various kinds of declarations inside a union, +// similar to the example in enum_in_struct.idl. + +union decl_heavy_union switch (short) +{ + case 1: + enum which + { + ZERO, + ONE, + TWO + } m_which; + case 2: + enum en + { + a, + b, + c + } m_en_arr[10]; + case 3: + struct st + { + long a; + char b; + } m_st_arr[10]; + case 4: + union un switch (long) + { + case 1: long a; + case 2: char b; + } m_un_arr[10]; +}; + |