1 //=============================================================================
3 * @file union_anonymous.idl
5 * This file contains examples of IDL code that has
6 * caused problems in the past for the TAO IDL
7 * compiler. This test is to make sure the problems
11 * @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
13 //=============================================================================
15 // Tricky case of lookup for a recursive union. When defined
16 // inside another datatype like this, the union is referenced
17 // inside itself before the closing brace is seen, but not
21 union ValueUnion
switch (short)
26 sequence
<ValueUnion
> VUValue
;
30 // Test for various kinds of declarations inside a union,
31 // similar to the example in enum_in_struct.idl.
32 typedef long NamedLongArray
[10];
34 union decl_heavy_union
switch (short)
57 union un
switch (long)
62 // The following caused compile problems once
63 // when generating ostream ops
65 NamedLongArray m_named_long_array
;
67 long m_anon_long_array
[10];