Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / IDL_Test / old_union.idl
blob4c312dd25cc33f945645f58ec6a8caf6f12490bf
2 //=============================================================================
3 /**
4 * @file old_union.idl
6 * Tests of union IDL constructs
9 * @author Andy Gokhale <gokhale@dre.vanderbilt.edu>
11 //=============================================================================
14 module OldUnion
16 struct Bar
18 long b1;
19 char b2;
22 union Foo switch (long)
24 case 1: long x;
25 case 2: Bar y;
26 default: char z;
30 union Foo2 switch (char)
32 case 'a': long x;
33 case 'b': Foo y;
36 interface a
38 struct astruct
40 Foo2 a1;
41 Foo a2;
42 Bar a3;
45 Foo2 opA (in astruct b);