1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28EXPECT FAILURE "interfaceinheritance.tests 1":
29interface Base {};
30interface Derived {
31    interface Base;
32    interface Base;
33};
34
35
36EXPECT FAILURE "interfaceinheritance.tests 2":
37interface Base {};
38interface Derived {
39    interface Base;
40    [optional] interface Base;
41};
42
43
44EXPECT FAILURE "interfaceinheritance.tests 3":
45interface Base {};
46interface Derived {
47    [optional] interface Base;
48    interface Base;
49};
50
51
52EXPECT FAILURE "interfaceinheritance.tests 4":
53interface Base {};
54interface Derived {
55    [optional] interface Base;
56    [optional] interface Base;
57};
58
59
60EXPECT FAILURE "interfaceinheritance.tests 5":
61interface Base1 {};
62interface Base2: Base1 {};
63interface Derived {
64    interface Base1;
65    interface Base2;
66};
67
68
69EXPECT FAILURE "interfaceinheritance.tests 6":
70interface Base1 {};
71interface Base2: Base1 {};
72interface Derived {
73    interface Base2;
74    interface Base1;
75};
76
77
78EXPECT FAILURE "interfaceinheritance.tests 7":
79interface Base1 {};
80interface Base2: Base1 {};
81interface Derived {
82    [optional] interface Base1;
83    interface Base2;
84};
85
86
87EXPECT FAILURE "interfaceinheritance.tests 8":
88interface Base1 {};
89interface Base2: Base1 {};
90interface Derived {
91    interface Base2;
92    [optional] interface Base1;
93};
94
95
96EXPECT SUCCESS "interfaceinheritance.tests 9":
97interface Base1 {};
98interface Base2: Base1 {};
99interface Derived {
100    interface Base1;
101    [optional] interface Base2;
102};
103
104
105EXPECT SUCCESS "interfaceinheritance.tests 10":
106interface Base1 {};
107interface Base2: Base1 {};
108interface Derived {
109    [optional] interface Base2;
110    interface Base1;
111};
112
113
114EXPECT SUCCESS "interfaceinheritance.tests 11":
115interface Base1 {};
116interface Base2: Base1 {};
117interface Derived {
118    [optional] interface Base1;
119    [optional] interface Base2;
120};
121
122
123EXPECT SUCCESS "interfaceinheritance.tests 12":
124interface Base1 {};
125interface Base2: Base1 {};
126interface Derived {
127    [optional] interface Base2;
128    [optional] interface Base1;
129};
130
131
132EXPECT SUCCESS "interfaceinheritance.tests 13":
133interface Base1 {};
134interface Base2 { [optional] interface Base1; };
135interface Derived {
136    interface Base1;
137    interface Base2;
138};
139
140
141EXPECT SUCCESS "interfaceinheritance.tests 14":
142interface Base1 {};
143interface Base2 { [optional] interface Base1; };
144interface Derived {
145    interface Base2;
146    interface Base1;
147};
148
149
150EXPECT FAILURE "interfaceinheritance.tests 15":
151interface Base1 {};
152interface Base2 { [optional] interface Base1; };
153interface Derived {
154    [optional] interface Base1;
155    interface Base2;
156};
157
158
159EXPECT FAILURE "interfaceinheritance.tests 16":
160interface Base1 {};
161interface Base2 { [optional] interface Base1; };
162interface Derived {
163    interface Base2;
164    [optional] interface Base1;
165};
166
167
168EXPECT SUCCESS "interfaceinheritance.tests 17":
169interface Base1 {};
170interface Base2 { [optional] interface Base1; };
171interface Derived {
172    interface Base1;
173    [optional] interface Base2;
174};
175
176
177EXPECT SUCCESS "interfaceinheritance.tests 18":
178interface Base1 {};
179interface Base2 { [optional] interface Base1; };
180interface Derived {
181    [optional] interface Base2;
182    interface Base1;
183};
184
185
186EXPECT SUCCESS "interfaceinheritance.tests 19":
187interface Base1 {};
188interface Base2 { [optional] interface Base1; };
189interface Derived {
190    [optional] interface Base1;
191    [optional] interface Base2;
192};
193
194
195EXPECT SUCCESS "interfaceinheritance.tests 20":
196interface Base1 {};
197interface Base2 { [optional] interface Base1; };
198interface Derived {
199    [optional] interface Base2;
200    [optional] interface Base1;
201};
202
203
204EXPECT SUCCESS "interfaceinheritance.tests 21":
205interface Base1 {};
206interface Base2: Base1 {};
207interface Base3: Base1 {};
208interface Derived {
209    interface Base2;
210    interface Base3;
211};
212
213
214EXPECT SUCCESS "interfaceinheritance.tests 22":
215interface Base1 {};
216interface Base2: Base1 {};
217interface Base3: Base1 {};
218interface Derived {
219    [optional] interface Base2;
220    interface Base3;
221};
222
223
224EXPECT SUCCESS "interfaceinheritance.tests 23":
225interface Base1 {};
226interface Base2: Base1 {};
227interface Base3: Base1 {};
228interface Derived {
229    interface Base2;
230    [optional] interface Base3;
231};
232
233
234EXPECT SUCCESS "interfaceinheritance.tests 24":
235interface Base1 {};
236interface Base2: Base1 {};
237interface Base3: Base1 {};
238interface Derived {
239    [optional] interface Base2;
240    [optional] interface Base3;
241};
242
243
244EXPECT SUCCESS "interfaceinheritance.tests 25":
245interface Base {};
246interface Derived {
247    [optional] interface Base;
248};
249
250
251EXPECT FAILURE "interfaceinheritance.tests 26":
252interface Base;
253interface Derived {
254    interface Base;
255};
256
257
258EXPECT FAILURE "interfaceinheritance.tests 27":
259interface Base;
260interface Derived {
261    [optional] interface Base;
262};
263
264
265EXPECT FAILURE "interfaceinheritance.tests 28":
266interface Base {};
267typedef Base Hidden;
268interface Derived {
269    interface Base;
270    interface Hidden;
271};
272
273
274EXPECT FAILURE "interfaceinheritance.tests 29":
275interface Base {};
276typedef Base Hidden;
277interface Derived {
278    interface Hidden;
279    interface Base;
280};
281