1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: constructor.tests,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 EXPECT SUCCESS "constructor.tests 1":
37 EXPECT SUCCESS "constructor.tests 2":
42 EXPECT SUCCESS "constructor.tests 3":
49 EXPECT FAILURE "constructor.tests 4":
57 EXPECT FAILURE "constructor.tests 5":
59 void f([in] any... p);
63 EXPECT FAILURE "constructor.tests 6":
65 void f([out] any... p);
69 EXPECT SUCCESS "constructor.tests 7":
76 EXPECT SUCCESS "constructor.tests 8":
84 EXPECT FAILURE "constructor.tests 9":
87 f([in] long p1, [in] any... p2);
91 EXPECT FAILURE "constructor.tests 10":
94 f([in] any... p2, [in] long p1);
98 EXPECT FAILURE "constructor.tests 11":
101 f([in] long p1, [in] long... p2);
105 EXPECT FAILURE "constructor.tests 12":
112 EXPECT FAILURE "constructor.tests 13":
119 EXPECT FAILURE "constructor.tests 14":
126 EXPECT FAILURE "constructor.tests 15":
127 module com { module sun { module star { module test {
129 service S: com::sun::star::test::X {
130 c1([in] long a, [in] com::sun::star::test::X b);
131 c2([in] long c, [in] X d);
136 EXPECT FAILURE "constructor.tests 16":
137 module com { module sun { module star { module test {
141 service S: com::sun::star::test::X {
142 c1([in] sequence<long> a);
143 c2([in] sequence<T> b);
147 EXPECT FAILURE "constructor.tests 17":
148 module com { module sun { module star { module test {
151 service S: com::sun::star::test::X {
157 EXPECT SUCCESS "constructor.tests 18":
158 module com { module sun { module star { module test {
161 service S: com::sun::star::test::X {
163 c2([in] sequence<any> b);
167 EXPECT SUCCESS "constructor.tests 19":
168 module com { module sun { module star { module test {
169 interface X { void m(); };
171 service S: com::sun::star::test::X {
176 EXPECT SUCCESS "constructor.tests 20":
177 module com { module sun { module star { module uno {
178 interface XInterface { void m(); };
180 service S: com::sun::star::uno::XInterface {
181 c1([in] long a, [in] long b);
186 EXPECT SUCCESS "constructor.tests 21":
187 module com { module sun { module star { module uno {
188 interface XInterface { void m(); };
190 service S: com::sun::star::uno::XInterface {
192 c2([in] long a, [in] long b);
196 EXPECT SUCCESS "constructor.tests 22":
197 module com { module sun { module star { module uno {
198 interface XInterface { void m(); };
200 service S: com::sun::star::uno::XInterface {
201 c1([in] long a, [in] short b);
202 c2([in] long a, [in] long b);