ICE 3.4.2
[php5-ice-freebsdport.git] / java / test / Ice / translator / TestSingleModuleWithPackage10.ice
blobf8a3d65d685466c3b36e142fe03a09fd417e2354
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 // Test: use SingleModuleWithPackage types from (same) double module definitions
12 #include <SingleModuleWithPackage.ice>
14 module M
16 module N
19 const smwpEnum smwpTest10Constant = smwpE1;
21 struct smwpTest10Struct
23     smwpEnum e;
24     smwpStruct s;
25     smwpStructSeq seq;
26     smwpStringStructDict dict;
27     smwpClass c;
28     smwpInterface i;
31 sequence<smwpStruct> smwpTest10StructSeq;
33 dictionary<smwpStruct, smwpBaseClass> smwpTest10StructClassSeq;
35 interface smwpTest10Interface extends smwpInterface {};
37 exception smwpTest10Exception extends smwpException
39     smwpEnum e1;
40     smwpStruct s1;
41     smwpStructSeq seq1;
42     smwpStringStructDict dict1;
43     smwpClass c1;
44     smwpInterface i1;
47 class smwpTest10Class extends smwpBaseClass implements smwpBaseInterface
49     smwpStruct
50     smwpTest10Op1(smwpEnum i1,
51                   smwpStruct i2,
52                   smwpStructSeq i3,
53                   smwpStringStructDict i4,
54                   smwpInterface i5,
55                   smwpClass i6,
56                   out smwpEnum o1,
57                   out smwpStruct o2,
58                   out smwpStructSeq o3,
59                   out smwpStringStructDict o4,
60                   out smwpInterface o5,
61                   out smwpClass o6)
62         throws smwpException;
64     ["ami"]
65     smwpStruct
66     smwpTest10Op2(smwpEnum i1,
67                   smwpStruct i2,
68                   smwpStructSeq i3,
69                   smwpStringStructDict i4,
70                   smwpInterface i5,
71                   smwpClass i6,
72                   out smwpEnum o1,
73                   out smwpStruct o2,
74                   out smwpStructSeq o3,
75                   out smwpStringStructDict o4,
76                   out smwpInterface o5,
77                   out smwpClass o6)
78         throws smwpException;
80     ["amd"]
81     smwpStruct
82     smwpTest10Op3(smwpEnum i1,
83                   smwpStruct i2,
84                   smwpStructSeq i3,
85                   smwpStringStructDict i4,
86                   smwpInterface i5,
87                   smwpClass i6,
88                   out smwpEnum o1,
89                   out smwpStruct o2,
90                   out smwpStructSeq o3,
91                   out smwpStringStructDict o4,
92                   out smwpInterface o5,
93                   out smwpClass o6)
94         throws smwpException;