diff options
Diffstat (limited to 'ACE/TAO/tests/Bug_2804_Regression/Test.idl')
-rw-r--r-- | ACE/TAO/tests/Bug_2804_Regression/Test.idl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ACE/TAO/tests/Bug_2804_Regression/Test.idl b/ACE/TAO/tests/Bug_2804_Regression/Test.idl new file mode 100644 index 00000000000..91f18412c07 --- /dev/null +++ b/ACE/TAO/tests/Bug_2804_Regression/Test.idl @@ -0,0 +1,41 @@ +// +// $Id$ +// + +#include "tao/OctetSeq.pidl" + +/// Put the interfaces in a module, to avoid global namespace pollution +module Test +{ + exception Recursive_Type_In_Any_Test_Failed {}; + exception Demarshaling_From_Any_Failed {}; + + enum ValueSort3 { + SYMBOL_TYPE, + SYMBOL_SEQ_TYPE + }; + + struct Symbol; + typedef sequence<Symbol> SymbolSeq; + + struct Symbol { + SymbolSeq args; + }; + + union NonRecursiveUnionWithStringStruct3 switch (ValueSort3) { + case SYMBOL_TYPE: + Symbol symbol_val; + case SYMBOL_SEQ_TYPE: + SymbolSeq symbol_seq_val; + }; + + /// Simple test interface. + interface Hello + { + /// Return the any provided as the "in" argument. + any get_any (in any the_any); + + /// Shutdown the server ORB. + oneway void shutdown (); + }; +}; |