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 SUCCESS "published.tests 1":
20 published enum Enum { VALUE };
21 published struct Struct1 { long member; };
22 published struct Struct2<T> { T member; };
23 published exception E1 {};
24 published interface I1 {};
25 published typedef long Typedef;
26 published constants Constants { const long Constant = 1; };
27 published service Service1: I1 {};
28 published service Service2 { interface I1; };
29 published singleton Singleton1: I1;
30 published singleton Singleton2 { service Service2; };
33 EXPECT FAILURE "published.tests 2":
34 constants Constants { published const long C = 1; };
37 EXPECT FAILURE "published.tests 3":
38 published constants Constants { published const long C = 1; };
41 EXPECT FAILURE "published.tests 4":
42 published module m {};
45 EXPECT SUCCESS "published.tests 5":
50 EXPECT SUCCESS "published.tests 6":
52 published interface I1 {};
55 EXPECT FAILURE "published.tests 7":
56 published interface I1;
60 EXPECT SUCCESS "published.tests 8":
61 published interface I1;
62 published interface I1 {};
65 EXPECT SUCCESS "published.tests 9":
66 struct S1 { long m1; };
67 struct S2: S1 { long m2; };
70 EXPECT FAILURE "published.tests 10":
71 struct S1 { long m1; };
72 published struct S2: S1 { long m2; };
75 EXPECT SUCCESS "published.tests 11":
76 published struct S1 { long m1; };
77 struct S2: S1 { long m2; };
80 EXPECT SUCCESS "published.tests 12":
81 published struct S1 { long m1; };
82 published struct S2: S1 { long m2; };
85 EXPECT SUCCESS "published.tests 13":
87 struct S1<T> { T m1; };
88 struct S2 { S1<E> m2; };
91 EXPECT FAILURE "published.tests 14":
93 struct S1<T> { T m1; };
94 published struct S2 { S1<E> m2; };
97 EXPECT SUCCESS "published.tests 15":
99 published struct S1<T> { T m1; };
100 struct S2 { S1<E> m2; };
103 EXPECT FAILURE "published.tests 16":
105 published struct S1<T> { T m1; };
106 published struct S2 { S1<E> m2; };
109 EXPECT SUCCESS "published.tests 17":
110 published enum E { V };
111 struct S1<T> { T m1; };
112 struct S2 { S1<E> m2; };
115 EXPECT FAILURE "published.tests 18":
116 published enum E { V };
117 struct S1<T> { T m1; };
118 published struct S2 { S1<E> m2; };
121 EXPECT SUCCESS "published.tests 19":
122 published enum E { V };
123 published struct S1<T> { T m1; };
124 struct S2 { S1<E> m2; };
127 EXPECT SUCCESS "published.tests 20":
128 published enum E { V };
129 published struct S1<T> { T m1; };
130 published struct S2 { S1<E> m2; };
133 EXPECT SUCCESS "published.tests 21":
134 module com { module sun { module star { module uno {
135 exception Exception {};
136 exception E2: Exception {};
140 EXPECT FAILURE "published.tests 22":
141 module com { module sun { module star { module uno {
142 exception Exception {};
143 published exception E2: Exception {};
147 EXPECT SUCCESS "published.tests 23":
148 module com { module sun { module star { module uno {
149 published exception Exception {};
150 exception E2: Exception {};
154 EXPECT SUCCESS "published.tests 24":
155 module com { module sun { module star { module uno {
156 published exception Exception {};
157 published exception E2: Exception {};
161 EXPECT SUCCESS "published.tests 25":
163 module com { module sun { module star { module uno {
164 exception Exception { E m; };
168 EXPECT FAILURE "published.tests 26":
170 module com { module sun { module star { module uno {
171 published exception Exception { E m; };
175 EXPECT SUCCESS "published.tests 27":
176 published enum E { V };
177 module com { module sun { module star { module uno {
178 exception Exception { E m; };
182 EXPECT SUCCESS "published.tests 28":
183 published enum E { V };
184 module com { module sun { module star { module uno {
185 published exception Exception { E m; };
189 EXPECT SUCCESS "published.tests 29":
194 EXPECT FAILURE "published.tests 30":
196 published interface I2: I1 {};
199 EXPECT SUCCESS "published.tests 31":
200 published interface I1 {};
204 EXPECT SUCCESS "published.tests 32":
205 published interface I1 {};
206 published interface I2: I1 {};
209 EXPECT SUCCESS "published.tests 33":
211 interface I1 { [attribute] E m; };
214 EXPECT FAILURE "published.tests 34":
216 published interface I1 { [attribute] E m; };
219 EXPECT SUCCESS "published.tests 35":
220 published enum E { V };
221 interface I1 { [attribute] E m; };
224 EXPECT SUCCESS "published.tests 36":
225 published enum E { V };
226 published interface I1 { [attribute] E m; };
229 EXPECT SUCCESS "published.tests 36a.1":
230 module com { module sun { module star { module uno {
231 exception Exception {};
232 interface I1 { [attribute] long m { get raises (Exception); }; };
236 EXPECT FAILURE "published.tests 36a.2":
237 module com { module sun { module star { module uno {
238 exception Exception {};
239 published interface I1 {
240 [attribute] long m { get raises (Exception); }; };
244 EXPECT SUCCESS "published.tests 36a.3":
245 module com { module sun { module star { module uno {
246 published exception Exception {};
247 interface I1 { [attribute] long m { get raises (Exception); }; };
251 EXPECT SUCCESS "published.tests 36a.4":
252 module com { module sun { module star { module uno {
253 published exception Exception {};
254 published interface I1 {
255 [attribute] long m { get raises (Exception); }; };
259 EXPECT SUCCESS "published.tests 37":
261 interface I1 { E f(); };
264 EXPECT FAILURE "published.tests 38":
266 published interface I1 { E f(); };
269 EXPECT SUCCESS "published.tests 39":
270 published enum E { V };
271 interface I1 { E f(); };
274 EXPECT SUCCESS "published.tests 40":
275 published enum E { V };
276 published interface I1 { E f(); };
279 EXPECT SUCCESS "published.tests 41":
281 interface I1 { void f([in] E p); };
284 EXPECT FAILURE "published.tests 42":
286 published interface I1 { void f([in] E p); };
289 EXPECT SUCCESS "published.tests 43":
290 published enum E { V };
291 interface I1 { void f([in] E p); };
294 EXPECT SUCCESS "published.tests 44":
295 published enum E { V };
296 published interface I1 { void f([in] E p); };
299 EXPECT SUCCESS "published.tests 45":
300 module com { module sun { module star { module uno {
301 exception Exception {};
302 interface I1 { void f() raises (Exception); };
306 EXPECT FAILURE "published.tests 46":
307 module com { module sun { module star { module uno {
308 exception Exception {};
309 published interface I1 { void f() raises (Exception); };
313 EXPECT SUCCESS "published.tests 47":
314 module com { module sun { module star { module uno {
315 published exception Exception {};
316 interface I1 { void f() raises (Exception); };
320 EXPECT SUCCESS "published.tests 48":
321 module com { module sun { module star { module uno {
322 published exception Exception {};
323 published interface I1 { void f() raises (Exception); };
327 EXPECT SUCCESS "published.tests 49":
329 interface I2 { interface I1; };
332 EXPECT FAILURE "published.tests 50":
334 published interface I2 { interface I1; };
337 EXPECT SUCCESS "published.tests 51":
338 published interface I1 {};
339 interface I2 { interface I1; };
342 EXPECT SUCCESS "published.tests 52":
343 published interface I1 {};
344 published interface I2 { interface I1; };
347 EXPECT SUCCESS "published.tests 57":
352 EXPECT FAILURE "published.tests 58":
354 published typedef E T;
357 EXPECT SUCCESS "published.tests 59":
358 published enum E { V };
362 EXPECT SUCCESS "published.tests 60":
363 published enum E { V };
364 published typedef E T;
367 EXPECT SUCCESS "published.tests 61":
373 EXPECT FAILURE "published.tests 62":
376 published struct S { T m; };
379 EXPECT FAILURE "published.tests 63":
381 published typedef E T;
385 EXPECT FAILURE "published.tests 64":
387 published typedef E T;
388 published struct S { T m; };
391 EXPECT SUCCESS "published.tests 65":
392 published enum E { V };
397 EXPECT FAILURE "published.tests 66":
398 published enum E { V };
400 published struct S { T m; };
403 EXPECT SUCCESS "published.tests 67":
404 published enum E { V };
405 published typedef E T;
409 EXPECT SUCCESS "published.tests 68":
410 published enum E { V };
411 published typedef E T;
412 published struct S { T m; };
415 EXPECT SUCCESS "published.tests 73":
418 const long C2 = C1 + 1;
422 EXPECT SUCCESS "published.tests 74":
423 published constants Cs {
425 const long C2 = C1 + 1;
429 EXPECT SUCCESS "published.tests 83":
430 constants Cs1 { const long C1 = 1; };
431 constants Cs2 { const long C2 = Cs1::C1 + 1; };
434 EXPECT FAILURE "published.tests 84":
435 constants Cs1 { const long C1 = 1; };
436 published constants Cs2 { const long C2 = Cs1::C1 + 1; };
439 EXPECT SUCCESS "published.tests 85":
440 published constants Cs1 { const long C1 = 1; };
441 constants Cs2 { const long C2 = Cs1::C1 + 1; };
444 EXPECT SUCCESS "published.tests 86":
445 published constants Cs1 { const long C1 = 1; };
446 published constants Cs2 { const long C2 = Cs1::C1 + 1; };
449 EXPECT SUCCESS "published.tests 87":
451 constants Cs { const T C = 1; };
454 EXPECT FAILURE "published.tests 88":
456 published constants Cs { const T C = 1; };
459 EXPECT SUCCESS "published.tests 89":
460 published typedef long T;
461 constants Cs { const T C = 1; };
464 EXPECT SUCCESS "published.tests 90":
465 published typedef long T;
466 published constants Cs { const T C = 1; };
469 EXPECT SUCCESS "published.tests 91":
471 service S2 { service S1; };
474 EXPECT FAILURE "published.tests 92":
476 published service S2 { service S1; };
479 EXPECT SUCCESS "published.tests 93":
480 published service S1 {};
481 service S2 { service S1; };
484 EXPECT SUCCESS "published.tests 94":
485 published service S1 {};
486 published service S2 { service S1; };
489 EXPECT SUCCESS "published.tests 95":
491 service S { interface I1; };
494 EXPECT FAILURE "published.tests 96":
496 published service S { interface I1; };
499 EXPECT SUCCESS "published.tests 97":
500 published interface I1 {};
501 service S { interface I1; };
504 EXPECT SUCCESS "published.tests 98":
505 published interface I1 {};
506 published service S { interface I1; };
509 EXPECT SUCCESS "published.tests 99":
514 EXPECT FAILURE "published.tests 100":
516 published service S: I1;
519 EXPECT SUCCESS "published.tests 101":
520 published interface I1 {};
524 EXPECT SUCCESS "published.tests 102":
525 published interface I1 {};
526 published service S: I1;
529 EXPECT SUCCESS "published.tests 103":
537 EXPECT FAILURE "published.tests 104":
539 published interface I1 {};
540 published service S: I1 {
545 EXPECT SUCCESS "published.tests 105":
546 published enum E { V };
553 EXPECT SUCCESS "published.tests 106":
554 published enum E { V };
555 published interface I1 {};
556 published service S: I1 {
561 EXPECT SUCCESS "published.tests 107":
562 module com { module sun { module star { module uno {
563 exception Exception {};
566 f() raises (Exception);
571 EXPECT FAILURE "published.tests 108":
572 module com { module sun { module star { module uno {
573 exception Exception {};
574 published interface I1 {};
575 published service S: I1 {
576 f() raises (Exception);
581 EXPECT SUCCESS "published.tests 109":
582 module com { module sun { module star { module uno {
583 published exception Exception {};
586 f() raises (Exception);
591 EXPECT SUCCESS "published.tests 110":
592 module com { module sun { module star { module uno {
593 published exception Exception {};
594 published interface I1 {};
595 published service S: I1 {
596 f() raises (Exception);
601 EXPECT SUCCESS "published.tests 111":
603 singleton S2 { service S1; };
606 EXPECT FAILURE "published.tests 112":
608 published singleton S2 { service S1; };
611 EXPECT SUCCESS "published.tests 113":
612 published service S1 {};
613 singleton S2 { service S1; };
616 EXPECT SUCCESS "published.tests 114":
617 published service S1 {};
618 published singleton S2 { service S1; };
621 EXPECT SUCCESS "published.tests 115":
626 EXPECT FAILURE "published.tests 116":
628 published singleton S: I1;
631 EXPECT SUCCESS "published.tests 117":
632 published interface I1 {};
636 EXPECT SUCCESS "published.tests 118":
637 published interface I1 {};
638 published singleton S: I1;
641 EXPECT FAILURE "published.tests 119":
643 published interface I2 { [optional] interface I1; };
646 EXPECT FAILURE "published.tests 120":
648 published service S2 { [optional] service S1; };
651 EXPECT SUCCESS "published.tests 121":
653 published service S { [optional] interface I; };
656 EXPECT FAILURE "published.tests 122":
658 published service S { [optional, property] I p; };
661 EXPECT FAILURE "published.tests 123":
663 published service S { [optional, property] sequence<I> p; };
666 EXPECT FAILURE "published.tests 124":
667 struct P<T> { T m; };
669 published service S { [optional, property] P<I> p; };
672 EXPECT FAILURE "published.tests 125":
673 published struct P<T> { T m; };
675 published service S { [optional, property] P<I> p; };
678 EXPECT FAILURE "published.tests 126":
679 struct P<T> { T m; };
680 published interface I {};
681 published service S { [optional, property] P<I> p; };