diff options
Diffstat (limited to 'ACE/TAO/tests/IDL_Test/generic_object.idl')
-rw-r--r-- | ACE/TAO/tests/IDL_Test/generic_object.idl | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ACE/TAO/tests/IDL_Test/generic_object.idl b/ACE/TAO/tests/IDL_Test/generic_object.idl new file mode 100644 index 00000000000..d0a21cdec0e --- /dev/null +++ b/ACE/TAO/tests/IDL_Test/generic_object.idl @@ -0,0 +1,44 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/tests/IDL_Test +// +// = FILENAME +// generic_object.idl +// +// = DESCRIPTION +// This file contains examples of IDL code that has +// caused problems in the past for the TAO IDL +// compiler. This test is to make sure the problems +// stay fixed. +// +// = AUTHORS +// Jeff Parsons <parsons@cs.wustl.edu> and TAO users. +// +// ============================================================================ + +// The IDL compiler deals with these in a completely different way +// that it deals with a derived object, i.e., an interface. + +enum ObjectType +{ + OT_THIS, + OT_THAT +}; + +union Selecter switch (ObjectType) +{ + case OT_THIS: Object this_object; + case OT_THAT: Object that_object; +}; + +// Test stub code for generic object parameters. +interface generic +{ + Object op (in Object inarg, + inout Object inoutarg, + out Object outarg); +}; + |