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 "constructor.tests 1":
24 EXPECT SUCCESS "constructor.tests 2":
29 EXPECT SUCCESS "constructor.tests 3":
36 EXPECT FAILURE "constructor.tests 4":
44 EXPECT FAILURE "constructor.tests 5":
46 void f([in] any... p);
50 EXPECT FAILURE "constructor.tests 6":
52 void f([out] any... p);
56 EXPECT SUCCESS "constructor.tests 7":
63 EXPECT SUCCESS "constructor.tests 8":
71 EXPECT FAILURE "constructor.tests 9":
74 f([in] long p1, [in] any... p2);
78 EXPECT FAILURE "constructor.tests 10":
81 f([in] any... p2, [in] long p1);
85 EXPECT FAILURE "constructor.tests 11":
88 f([in] long p1, [in] long... p2);
92 EXPECT FAILURE "constructor.tests 12":
99 EXPECT FAILURE "constructor.tests 13":
106 EXPECT FAILURE "constructor.tests 14":
113 EXPECT FAILURE "constructor.tests 15":
114 module com { module sun { module star { module test {
116 service S: com::sun::star::test::X {
117 c1([in] long a, [in] com::sun::star::test::X b);
118 c2([in] long c, [in] X d);
123 EXPECT FAILURE "constructor.tests 16":
124 module com { module sun { module star { module test {
128 service S: com::sun::star::test::X {
129 c1([in] sequence<long> a);
130 c2([in] sequence<T> b);
134 EXPECT FAILURE "constructor.tests 17":
135 module com { module sun { module star { module test {
138 service S: com::sun::star::test::X {
144 EXPECT SUCCESS "constructor.tests 18":
145 module com { module sun { module star { module test {
148 service S: com::sun::star::test::X {
150 c2([in] sequence<any> b);
154 EXPECT SUCCESS "constructor.tests 19":
155 module com { module sun { module star { module test {
156 interface X { void m(); };
158 service S: com::sun::star::test::X {
163 EXPECT SUCCESS "constructor.tests 20":
164 module com { module sun { module star { module uno {
165 interface XInterface { void m(); };
167 service S: com::sun::star::uno::XInterface {
168 c1([in] long a, [in] long b);
173 EXPECT SUCCESS "constructor.tests 21":
174 module com { module sun { module star { module uno {
175 interface XInterface { void m(); };
177 service S: com::sun::star::uno::XInterface {
179 c2([in] long a, [in] long b);
183 EXPECT SUCCESS "constructor.tests 22":
184 module com { module sun { module star { module uno {
185 interface XInterface { void m(); };
187 service S: com::sun::star::uno::XInterface {
188 c1([in] long a, [in] short b);
189 c2([in] long a, [in] long b);