Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / IDL_Test / generic_object.idl
blob72d511616160080714ed9f3f04abcb759db42008
2 //=============================================================================
3 /**
4 * @file generic_object.idl
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
9 * stay fixed.
12 * @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
14 //=============================================================================
17 // The IDL compiler deals with these in a completely different way
18 // that it deals with a derived object, i.e., an interface.
20 enum ObjectType
22 OT_THIS,
23 OT_THAT
26 union Selecter switch (ObjectType)
28 case OT_THIS: Object this_object;
29 case OT_THAT: Object that_object;
32 // Test stub code for generic object parameters.
33 interface generic
35 Object op (in Object inarg,
36 inout Object inoutarg,
37 out Object outarg);