ICE 3.4.2
[php5-ice-freebsdport.git] / cpp / test / Slice / errorDetection / IllegalLocal.ice
blob8103440f4b58ed8225822bf0c4d701be6204105c
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 // **********************************************************************
12 module Test
15 interface i1 {};
17 local interface i2 extends i1 {};       // error
19 interface i3 extends i2 {};             // error
21 local interface i4 extends i2 {};       // OK
23 class c1 implements i1 {};              // OK
25 class c2 implements i2 {};              // error
27 local exception le {};
29 interface i
31     void op() throws le;                // error
34 exception le2 extends le {};            // error
36 local sequence<long> lls;
38 class c3
40     LocalObject lo1;                    // error
41     i2*         lo2;                    // error
42     i2          lo3;                    // error
43     lls         ls;                     // error
46 struct s1
48     lls ls;                             // error
51 exception e3
53     lls ls;                             // error
56 sequence<LocalObject> los;              // error
58 local sequence<byte> bs;
59 dictionary<bs, long> d1;                // error
60 dictionary<long, bs> d2;                // error
61 dictionary<bs, bs> d3;                  // error
63 local interface i4;
64 struct s2
66     i4 m;
69 local enum en { a };
70 struct s3
72     en e;
75 interface i5
77     void op(en p);
78     LocalObject op2();
81 exception E
85 local interface i6
87     void op() throws E;                 // error
90 local class c7
92     void op() throws E;                 // error