Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_3919_Regression / Test.idl
blobdf27bea84f65ba2e1c6462bb95d0ca7945aec750
2 #include "tao/OctetSeq.pidl"
3 #include "tao/StringSeq.pidl"
5 /// Put the interfaces in a module, to avoid global namespace pollution
6 module Test
8 exception Recursive_Type_In_Any_Test_Failed {};
9 exception Demarshaling_From_Any_Failed {};
11 enum MyAttRefValEnum {
12 ArvAttribute,
13 ArvInteger,
14 ArvComposition
17 // NOTE: the (deprecated) anonymous sequence type in the union
18 // is intentional; the IDL compiler generated different
19 // code for this case as compared to using a proper
20 // forward and typedef.
21 struct MyAttRef {
22 string attRefName;
23 string attRefQualifier;
24 union MyAttRefValue switch(MyAttRefValEnum) {
25 case ArvAttribute: string attrValue; //value of a simple attribute
26 case ArvInteger: long intValue; // just for testing
27 case ArvComposition: sequence <MyAttRef> compValue; //a composition by specifying a sequence of MyAttRef elements.
28 } attRefValue;
30 typedef sequence <MyAttRef> MyAttRefSequence;
32 /// Simple test interface.
33 interface Hello
35 /// Return the any provided as the "in" argument.
36 any get_any (in any the_any);
38 /// Shutdown the server ORB.
39 oneway void shutdown ();