Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / InterfaceRepo / Bug_3495_Regression / Test.idl
blobe89e0b500d0c31b54a31884b1f5294d1f5821d19
2 module Test {
3 typedef long ErrorType;
5 const ErrorType ErrorOne = 0;
6 const ErrorType ErrorTwo = 10;
7 const ErrorType ErrorThree = 100;
9 struct structOne
11 boolean first;
12 union ErrorInfo switch (ErrorType)
14 case ErrorOne: string errorstring;
15 case ErrorTwo: long errornumber;
16 } second;
19 struct structTwo
21 union ErrorInfo switch (ErrorType)
23 case ErrorThree: string failstring;
24 } thisonly;
27 exception exceptionOne
29 union ExceptionUnion switch (ErrorType)
31 case ErrorThree: string failstring;
32 } exceptiononly;
35 interface interfaceOne {
36 void getstruct (out structOne tester) raises(exceptionOne);