2 //=============================================================================
6 * This file contains examples of IDL code that has
7 * caused problems in the past for the TAO IDL
8 * compiler. This test is to make sure the problems
12 * @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
14 //=============================================================================
16 #ifndef IDL_TEST_INCLUDED_IDL
17 #define IDL_TEST_INCLUDED_IDL
19 // Included in IDL file 'including.idl'.
22 typedef sequence
<double> Seq1Type
;
33 // This valuetype is used in a sequence in the including file,
34 // and tests that Value_VarOut_T.h is included early enough.
40 // A valuetype in valuetype.idl inherits from this one.
41 // In the original bug, the name for this valuetype's
42 // anonymous sequence member was not created in the derived
43 // valuetype's AST, so when the arglist for the derived
44 // valuetype's constructor w/arglist was generated, the member
45 // below was named 'sequence', which of course didn't compile.
46 valuetype IncludedBase
48 public sequence
<long> DeprecatedMember
;
51 // References to MyStructA in including.idl get the
52 // forward declaration from lookup, and we were
53 // getting empty typename generation in various places,
54 // before overriding the visit methods for forward
55 // declared structs and unions in the relevant visitors.
59 typedef sequence
<MyStructA
> MySeqA
;
64 MySeqA recursive_member
;
68 // A different enum with the same enum values is
69 // defined in a derived interface in the same scope
70 // in another IDL file that includes this one. The
71 // construction is legal and should be accepted.
90 typedef long my_long_type
;
93 #endif
/* IDL_TEST_INCLUDED_IDL */