2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 EXPECT FAILURE "interfaceinheritance.tests 1":
27 EXPECT FAILURE "interfaceinheritance.tests 2":
31 [optional] interface Base;
35 EXPECT FAILURE "interfaceinheritance.tests 3":
38 [optional] interface Base;
43 EXPECT FAILURE "interfaceinheritance.tests 4":
46 [optional] interface Base;
47 [optional] interface Base;
51 EXPECT FAILURE "interfaceinheritance.tests 5":
53 interface Base2: Base1 {};
60 EXPECT FAILURE "interfaceinheritance.tests 6":
62 interface Base2: Base1 {};
69 EXPECT FAILURE "interfaceinheritance.tests 7":
71 interface Base2: Base1 {};
73 [optional] interface Base1;
78 EXPECT FAILURE "interfaceinheritance.tests 8":
80 interface Base2: Base1 {};
83 [optional] interface Base1;
87 EXPECT SUCCESS "interfaceinheritance.tests 9":
89 interface Base2: Base1 {};
92 [optional] interface Base2;
96 EXPECT SUCCESS "interfaceinheritance.tests 10":
98 interface Base2: Base1 {};
100 [optional] interface Base2;
105 EXPECT SUCCESS "interfaceinheritance.tests 11":
107 interface Base2: Base1 {};
109 [optional] interface Base1;
110 [optional] interface Base2;
114 EXPECT SUCCESS "interfaceinheritance.tests 12":
116 interface Base2: Base1 {};
118 [optional] interface Base2;
119 [optional] interface Base1;
123 EXPECT SUCCESS "interfaceinheritance.tests 13":
125 interface Base2 { [optional] interface Base1; };
132 EXPECT SUCCESS "interfaceinheritance.tests 14":
134 interface Base2 { [optional] interface Base1; };
141 EXPECT FAILURE "interfaceinheritance.tests 15":
143 interface Base2 { [optional] interface Base1; };
145 [optional] interface Base1;
150 EXPECT FAILURE "interfaceinheritance.tests 16":
152 interface Base2 { [optional] interface Base1; };
155 [optional] interface Base1;
159 EXPECT SUCCESS "interfaceinheritance.tests 17":
161 interface Base2 { [optional] interface Base1; };
164 [optional] interface Base2;
168 EXPECT SUCCESS "interfaceinheritance.tests 18":
170 interface Base2 { [optional] interface Base1; };
172 [optional] interface Base2;
177 EXPECT SUCCESS "interfaceinheritance.tests 19":
179 interface Base2 { [optional] interface Base1; };
181 [optional] interface Base1;
182 [optional] interface Base2;
186 EXPECT SUCCESS "interfaceinheritance.tests 20":
188 interface Base2 { [optional] interface Base1; };
190 [optional] interface Base2;
191 [optional] interface Base1;
195 EXPECT SUCCESS "interfaceinheritance.tests 21":
197 interface Base2: Base1 {};
198 interface Base3: Base1 {};
205 EXPECT SUCCESS "interfaceinheritance.tests 22":
207 interface Base2: Base1 {};
208 interface Base3: Base1 {};
210 [optional] interface Base2;
215 EXPECT SUCCESS "interfaceinheritance.tests 23":
217 interface Base2: Base1 {};
218 interface Base3: Base1 {};
221 [optional] interface Base3;
225 EXPECT SUCCESS "interfaceinheritance.tests 24":
227 interface Base2: Base1 {};
228 interface Base3: Base1 {};
230 [optional] interface Base2;
231 [optional] interface Base3;
235 EXPECT SUCCESS "interfaceinheritance.tests 25":
238 [optional] interface Base;
242 EXPECT FAILURE "interfaceinheritance.tests 26":
249 EXPECT FAILURE "interfaceinheritance.tests 27":
252 [optional] interface Base;
256 EXPECT FAILURE "interfaceinheritance.tests 28":
265 EXPECT FAILURE "interfaceinheritance.tests 29":