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 const long Constant = 1;
27 published constants Constants { const long Constant = 1; };
28 published service Service1: I1 {};
29 published service Service2 { interface I1; };
30 published singleton Singleton1: I1;
31 published singleton Singleton2 { service Service2; };
34 EXPECT FAILURE "published.tests 2":
35 constants Constants { published const long C = 1; };
38 EXPECT FAILURE "published.tests 3":
39 published constants Constants { published const long C = 1; };
42 EXPECT FAILURE "published.tests 4":
43 published module m {};
46 EXPECT SUCCESS "published.tests 5":
51 EXPECT SUCCESS "published.tests 6":
53 published interface I1 {};
56 EXPECT FAILURE "published.tests 7":
57 published interface I1;
61 EXPECT SUCCESS "published.tests 8":
62 published interface I1;
63 published interface I1 {};
66 EXPECT SUCCESS "published.tests 9":
67 struct S1 { long m1; };
68 struct S2: S1 { long m2; };
71 EXPECT FAILURE "published.tests 10":
72 struct S1 { long m1; };
73 published struct S2: S1 { long m2; };
76 EXPECT SUCCESS "published.tests 11":
77 published struct S1 { long m1; };
78 struct S2: S1 { long m2; };
81 EXPECT SUCCESS "published.tests 12":
82 published struct S1 { long m1; };
83 published struct S2: S1 { long m2; };
86 EXPECT SUCCESS "published.tests 13":
88 struct S1<T> { T m1; };
89 struct S2 { S1<E> m2; };
92 EXPECT FAILURE "published.tests 14":
94 struct S1<T> { T m1; };
95 published struct S2 { S1<E> m2; };
98 EXPECT SUCCESS "published.tests 15":
100 published struct S1<T> { T m1; };
101 struct S2 { S1<E> m2; };
104 EXPECT FAILURE "published.tests 16":
106 published struct S1<T> { T m1; };
107 published struct S2 { S1<E> m2; };
110 EXPECT SUCCESS "published.tests 17":
111 published enum E { V };
112 struct S1<T> { T m1; };
113 struct S2 { S1<E> m2; };
116 EXPECT FAILURE "published.tests 18":
117 published enum E { V };
118 struct S1<T> { T m1; };
119 published struct S2 { S1<E> m2; };
122 EXPECT SUCCESS "published.tests 19":
123 published enum E { V };
124 published struct S1<T> { T m1; };
125 struct S2 { S1<E> m2; };
128 EXPECT SUCCESS "published.tests 20":
129 published enum E { V };
130 published struct S1<T> { T m1; };
131 published struct S2 { S1<E> m2; };
134 EXPECT SUCCESS "published.tests 21":
135 module com { module sun { module star { module uno {
136 exception Exception {};
137 exception E2: Exception {};
141 EXPECT FAILURE "published.tests 22":
142 module com { module sun { module star { module uno {
143 exception Exception {};
144 published exception E2: Exception {};
148 EXPECT SUCCESS "published.tests 23":
149 module com { module sun { module star { module uno {
150 published exception Exception {};
151 exception E2: Exception {};
155 EXPECT SUCCESS "published.tests 24":
156 module com { module sun { module star { module uno {
157 published exception Exception {};
158 published exception E2: Exception {};
162 EXPECT SUCCESS "published.tests 25":
164 module com { module sun { module star { module uno {
165 exception Exception { E m; };
169 EXPECT FAILURE "published.tests 26":
171 module com { module sun { module star { module uno {
172 published exception Exception { E m; };
176 EXPECT SUCCESS "published.tests 27":
177 published enum E { V };
178 module com { module sun { module star { module uno {
179 exception Exception { E m; };
183 EXPECT SUCCESS "published.tests 28":
184 published enum E { V };
185 module com { module sun { module star { module uno {
186 published exception Exception { E m; };
190 EXPECT SUCCESS "published.tests 29":
195 EXPECT FAILURE "published.tests 30":
197 published interface I2: I1 {};
200 EXPECT SUCCESS "published.tests 31":
201 published interface I1 {};
205 EXPECT SUCCESS "published.tests 32":
206 published interface I1 {};
207 published interface I2: I1 {};
210 EXPECT SUCCESS "published.tests 33":
212 interface I1 { [attribute] E m; };
215 EXPECT FAILURE "published.tests 34":
217 published interface I1 { [attribute] E m; };
220 EXPECT SUCCESS "published.tests 35":
221 published enum E { V };
222 interface I1 { [attribute] E m; };
225 EXPECT SUCCESS "published.tests 36":
226 published enum E { V };
227 published interface I1 { [attribute] E m; };
230 EXPECT SUCCESS "published.tests 36a.1":
231 module com { module sun { module star { module uno {
232 exception Exception {};
233 interface I1 { [attribute] long m { get raises (Exception); }; };
237 EXPECT FAILURE "published.tests 36a.2":
238 module com { module sun { module star { module uno {
239 exception Exception {};
240 published interface I1 {
241 [attribute] long m { get raises (Exception); }; };
245 EXPECT SUCCESS "published.tests 36a.3":
246 module com { module sun { module star { module uno {
247 published exception Exception {};
248 interface I1 { [attribute] long m { get raises (Exception); }; };
252 EXPECT SUCCESS "published.tests 36a.4":
253 module com { module sun { module star { module uno {
254 published exception Exception {};
255 published interface I1 {
256 [attribute] long m { get raises (Exception); }; };
260 EXPECT SUCCESS "published.tests 37":
262 interface I1 { E f(); };
265 EXPECT FAILURE "published.tests 38":
267 published interface I1 { E f(); };
270 EXPECT SUCCESS "published.tests 39":
271 published enum E { V };
272 interface I1 { E f(); };
275 EXPECT SUCCESS "published.tests 40":
276 published enum E { V };
277 published interface I1 { E f(); };
280 EXPECT SUCCESS "published.tests 41":
282 interface I1 { void f([in] E p); };
285 EXPECT FAILURE "published.tests 42":
287 published interface I1 { void f([in] E p); };
290 EXPECT SUCCESS "published.tests 43":
291 published enum E { V };
292 interface I1 { void f([in] E p); };
295 EXPECT SUCCESS "published.tests 44":
296 published enum E { V };
297 published interface I1 { void f([in] E p); };
300 EXPECT SUCCESS "published.tests 45":
301 module com { module sun { module star { module uno {
302 exception Exception {};
303 interface I1 { void f() raises (Exception); };
307 EXPECT FAILURE "published.tests 46":
308 module com { module sun { module star { module uno {
309 exception Exception {};
310 published interface I1 { void f() raises (Exception); };
314 EXPECT SUCCESS "published.tests 47":
315 module com { module sun { module star { module uno {
316 published exception Exception {};
317 interface I1 { void f() raises (Exception); };
321 EXPECT SUCCESS "published.tests 48":
322 module com { module sun { module star { module uno {
323 published exception Exception {};
324 published interface I1 { void f() raises (Exception); };
328 EXPECT SUCCESS "published.tests 49":
330 interface I2 { interface I1; };
333 EXPECT FAILURE "published.tests 50":
335 published interface I2 { interface I1; };
338 EXPECT SUCCESS "published.tests 51":
339 published interface I1 {};
340 interface I2 { interface I1; };
343 EXPECT SUCCESS "published.tests 52":
344 published interface I1 {};
345 published interface I2 { interface I1; };
348 EXPECT SUCCESS "published.tests 57":
353 EXPECT FAILURE "published.tests 58":
355 published typedef E T;
358 EXPECT SUCCESS "published.tests 59":
359 published enum E { V };
363 EXPECT SUCCESS "published.tests 60":
364 published enum E { V };
365 published typedef E T;
368 EXPECT SUCCESS "published.tests 61":
374 EXPECT FAILURE "published.tests 62":
377 published struct S { T m; };
380 EXPECT FAILURE "published.tests 63":
382 published typedef E T;
386 EXPECT FAILURE "published.tests 64":
388 published typedef E T;
389 published struct S { T m; };
392 EXPECT SUCCESS "published.tests 65":
393 published enum E { V };
398 EXPECT FAILURE "published.tests 66":
399 published enum E { V };
401 published struct S { T m; };
404 EXPECT SUCCESS "published.tests 67":
405 published enum E { V };
406 published typedef E T;
410 EXPECT SUCCESS "published.tests 68":
411 published enum E { V };
412 published typedef E T;
413 published struct S { T m; };
416 EXPECT SUCCESS "published.tests 69":
418 const long C2 = C1 + 1;
421 EXPECT FAILURE "published.tests 70":
423 published const long C2 = C1 + 1;
426 EXPECT SUCCESS "published.tests 71":
427 published const long C1 = 1;
428 const long C2 = C1 + 1;
431 EXPECT SUCCESS "published.tests 72":
432 published const long C1 = 1;
433 published const long C2 = C1 + 1;
436 EXPECT SUCCESS "published.tests 73":
439 const long C2 = C1 + 1;
443 EXPECT SUCCESS "published.tests 74":
444 published constants Cs {
446 const long C2 = C1 + 1;
450 EXPECT SUCCESS "published.tests 75":
451 constants Cs { const long C1 = 1; };
452 const long C2 = Cs::C1 + 1;
455 EXPECT FAILURE "published.tests 76":
456 constants Cs { const long C1 = 1; };
457 published const long C2 = Cs::C1 + 1;
460 EXPECT SUCCESS "published.tests 77":
461 published constants Cs { const long C1 = 1; };
462 const long C2 = Cs::C1 + 1;
465 EXPECT SUCCESS "published.tests 78":
466 published constants Cs { const long C1 = 1; };
467 published const long C2 = Cs::C1 + 1;
470 EXPECT SUCCESS "published.tests 79":
472 constants Cs { const long C2 = C1 + 1; };
475 EXPECT FAILURE "published.tests 80":
477 published constants Cs { const long C2 = C1 + 1; };
480 EXPECT SUCCESS "published.tests 81":
481 published const long C1 = 1;
482 constants Cs { const long C2 = C1 + 1; };
485 EXPECT SUCCESS "published.tests 82":
486 published const long C1 = 1;
487 published constants Cs { const long C2 = C1 + 1; };
490 EXPECT SUCCESS "published.tests 83":
491 constants Cs1 { const long C1 = 1; };
492 constants Cs2 { const long C2 = Cs1::C1 + 1; };
495 EXPECT FAILURE "published.tests 84":
496 constants Cs1 { const long C1 = 1; };
497 published constants Cs2 { const long C2 = Cs1::C1 + 1; };
500 EXPECT SUCCESS "published.tests 85":
501 published constants Cs1 { const long C1 = 1; };
502 constants Cs2 { const long C2 = Cs1::C1 + 1; };
505 EXPECT SUCCESS "published.tests 86":
506 published constants Cs1 { const long C1 = 1; };
507 published constants Cs2 { const long C2 = Cs1::C1 + 1; };
510 EXPECT SUCCESS "published.tests 87":
515 EXPECT FAILURE "published.tests 88":
517 published const T C = 1;
520 EXPECT SUCCESS "published.tests 89":
521 published typedef long T;
525 EXPECT SUCCESS "published.tests 90":
526 published typedef long T;
527 published const T C = 1;
530 EXPECT SUCCESS "published.tests 91":
532 service S2 { service S1; };
535 EXPECT FAILURE "published.tests 92":
537 published service S2 { service S1; };
540 EXPECT SUCCESS "published.tests 93":
541 published service S1 {};
542 service S2 { service S1; };
545 EXPECT SUCCESS "published.tests 94":
546 published service S1 {};
547 published service S2 { service S1; };
550 EXPECT SUCCESS "published.tests 95":
552 service S { interface I1; };
555 EXPECT FAILURE "published.tests 96":
557 published service S { interface I1; };
560 EXPECT SUCCESS "published.tests 97":
561 published interface I1 {};
562 service S { interface I1; };
565 EXPECT SUCCESS "published.tests 98":
566 published interface I1 {};
567 published service S { interface I1; };
570 EXPECT SUCCESS "published.tests 99":
575 EXPECT FAILURE "published.tests 100":
577 published service S: I1;
580 EXPECT SUCCESS "published.tests 101":
581 published interface I1 {};
585 EXPECT SUCCESS "published.tests 102":
586 published interface I1 {};
587 published service S: I1;
590 EXPECT SUCCESS "published.tests 103":
598 EXPECT FAILURE "published.tests 104":
600 published interface I1 {};
601 published service S: I1 {
606 EXPECT SUCCESS "published.tests 105":
607 published enum E { V };
614 EXPECT SUCCESS "published.tests 106":
615 published enum E { V };
616 published interface I1 {};
617 published service S: I1 {
622 EXPECT SUCCESS "published.tests 107":
623 module com { module sun { module star { module uno {
624 exception Exception {};
627 f() raises (Exception);
632 EXPECT FAILURE "published.tests 108":
633 module com { module sun { module star { module uno {
634 exception Exception {};
635 published interface I1 {};
636 published service S: I1 {
637 f() raises (Exception);
642 EXPECT SUCCESS "published.tests 109":
643 module com { module sun { module star { module uno {
644 published exception Exception {};
647 f() raises (Exception);
652 EXPECT SUCCESS "published.tests 110":
653 module com { module sun { module star { module uno {
654 published exception Exception {};
655 published interface I1 {};
656 published service S: I1 {
657 f() raises (Exception);
662 EXPECT SUCCESS "published.tests 111":
664 singleton S2 { service S1; };
667 EXPECT FAILURE "published.tests 112":
669 published singleton S2 { service S1; };
672 EXPECT SUCCESS "published.tests 113":
673 published service S1 {};
674 singleton S2 { service S1; };
677 EXPECT SUCCESS "published.tests 114":
678 published service S1 {};
679 published singleton S2 { service S1; };
682 EXPECT SUCCESS "published.tests 115":
687 EXPECT FAILURE "published.tests 116":
689 published singleton S: I1;
692 EXPECT SUCCESS "published.tests 117":
693 published interface I1 {};
697 EXPECT SUCCESS "published.tests 118":
698 published interface I1 {};
699 published singleton S: I1;