1*57f04c0eSAndrew Rist#************************************************************** 2*57f04c0eSAndrew Rist# 3*57f04c0eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*57f04c0eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*57f04c0eSAndrew Rist# distributed with this work for additional information 6*57f04c0eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*57f04c0eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*57f04c0eSAndrew Rist# "License"); you may not use this file except in compliance 9*57f04c0eSAndrew Rist# with the License. You may obtain a copy of the License at 10*57f04c0eSAndrew Rist# 11*57f04c0eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*57f04c0eSAndrew Rist# 13*57f04c0eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*57f04c0eSAndrew Rist# software distributed under the License is distributed on an 15*57f04c0eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*57f04c0eSAndrew Rist# KIND, either express or implied. See the License for the 17*57f04c0eSAndrew Rist# specific language governing permissions and limitations 18*57f04c0eSAndrew Rist# under the License. 19*57f04c0eSAndrew Rist# 20*57f04c0eSAndrew Rist#************************************************************** 21cdf0e10cSrcweir 22cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 1": 23cdf0e10cSrcweirinterface X {}; 24cdf0e10cSrcweirservice S: X; 25cdf0e10cSrcweir 26cdf0e10cSrcweir 27cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 2": 28cdf0e10cSrcweirinterface X {}; 29cdf0e10cSrcweirservice S: X {}; 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 3": 33cdf0e10cSrcweirinterface X {}; 34cdf0e10cSrcweirservice S: X { 35cdf0e10cSrcweir f(); 36cdf0e10cSrcweir}; 37cdf0e10cSrcweir 38cdf0e10cSrcweir 39cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 4": 40cdf0e10cSrcweirinterface X {}; 41cdf0e10cSrcweirservice S: X { 42cdf0e10cSrcweir f(); 43cdf0e10cSrcweir f(); 44cdf0e10cSrcweir}; 45cdf0e10cSrcweir 46cdf0e10cSrcweir 47cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 5": 48cdf0e10cSrcweirinterface X { 49cdf0e10cSrcweir void f([in] any... p); 50cdf0e10cSrcweir}; 51cdf0e10cSrcweir 52cdf0e10cSrcweir 53cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 6": 54cdf0e10cSrcweirinterface X { 55cdf0e10cSrcweir void f([out] any... p); 56cdf0e10cSrcweir}; 57cdf0e10cSrcweir 58cdf0e10cSrcweir 59cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 7": 60cdf0e10cSrcweirinterface X {}; 61cdf0e10cSrcweirservice S: X { 62cdf0e10cSrcweir f([in] any... p); 63cdf0e10cSrcweir}; 64cdf0e10cSrcweir 65cdf0e10cSrcweir 66cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 8": 67cdf0e10cSrcweirinterface X {}; 68cdf0e10cSrcweirtypedef any some; 69cdf0e10cSrcweirservice S: X { 70cdf0e10cSrcweir f([in] some... p); 71cdf0e10cSrcweir}; 72cdf0e10cSrcweir 73cdf0e10cSrcweir 74cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 9": 75cdf0e10cSrcweirinterface X {}; 76cdf0e10cSrcweirservice S: X { 77cdf0e10cSrcweir f([in] long p1, [in] any... p2); 78cdf0e10cSrcweir}; 79cdf0e10cSrcweir 80cdf0e10cSrcweir 81cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 10": 82cdf0e10cSrcweirinterface X {}; 83cdf0e10cSrcweirservice S: X { 84cdf0e10cSrcweir f([in] any... p2, [in] long p1); 85cdf0e10cSrcweir}; 86cdf0e10cSrcweir 87cdf0e10cSrcweir 88cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 11": 89cdf0e10cSrcweirinterface X {}; 90cdf0e10cSrcweirservice S: X { 91cdf0e10cSrcweir f([in] long p1, [in] long... p2); 92cdf0e10cSrcweir}; 93cdf0e10cSrcweir 94cdf0e10cSrcweir 95cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 12": 96cdf0e10cSrcweirinterface X {}; 97cdf0e10cSrcweirservice S: X { 98cdf0e10cSrcweir f([out] long p); 99cdf0e10cSrcweir}; 100cdf0e10cSrcweir 101cdf0e10cSrcweir 102cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 13": 103cdf0e10cSrcweirinterface X {}; 104cdf0e10cSrcweirservice S: X { 105cdf0e10cSrcweir f([out] any... p); 106cdf0e10cSrcweir}; 107cdf0e10cSrcweir 108cdf0e10cSrcweir 109cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 14": 110cdf0e10cSrcweirinterface X {}; 111cdf0e10cSrcweirsingleton S: X { 112cdf0e10cSrcweir f(); 113cdf0e10cSrcweir}; 114cdf0e10cSrcweir 115cdf0e10cSrcweir 116cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 15": 117cdf0e10cSrcweirmodule com { module sun { module star { module test { 118cdf0e10cSrcweir interface X {}; 119cdf0e10cSrcweirservice S: com::sun::star::test::X { 120cdf0e10cSrcweir c1([in] long a, [in] com::sun::star::test::X b); 121cdf0e10cSrcweir c2([in] long c, [in] X d); 122cdf0e10cSrcweir}; 123cdf0e10cSrcweir}; }; }; }; 124cdf0e10cSrcweir 125cdf0e10cSrcweir 126cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 16": 127cdf0e10cSrcweirmodule com { module sun { module star { module test { 128cdf0e10cSrcweir interface X {}; 129cdf0e10cSrcweir}; }; }; }; 130cdf0e10cSrcweirtypedef long T; 131cdf0e10cSrcweirservice S: com::sun::star::test::X { 132cdf0e10cSrcweir c1([in] sequence<long> a); 133cdf0e10cSrcweir c2([in] sequence<T> b); 134cdf0e10cSrcweir}; 135cdf0e10cSrcweir 136cdf0e10cSrcweir 137cdf0e10cSrcweirEXPECT FAILURE "constructor.tests 17": 138cdf0e10cSrcweirmodule com { module sun { module star { module test { 139cdf0e10cSrcweir interface X {}; 140cdf0e10cSrcweir}; }; }; }; 141cdf0e10cSrcweirservice S: com::sun::star::test::X { 142cdf0e10cSrcweir c1([in] any... a); 143cdf0e10cSrcweir c2([in] any... b); 144cdf0e10cSrcweir}; 145cdf0e10cSrcweir 146cdf0e10cSrcweir 147cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 18": 148cdf0e10cSrcweirmodule com { module sun { module star { module test { 149cdf0e10cSrcweir interface X {}; 150cdf0e10cSrcweir}; }; }; }; 151cdf0e10cSrcweirservice S: com::sun::star::test::X { 152cdf0e10cSrcweir c1([in] any... a); 153cdf0e10cSrcweir c2([in] sequence<any> b); 154cdf0e10cSrcweir}; 155cdf0e10cSrcweir 156cdf0e10cSrcweir 157cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 19": 158cdf0e10cSrcweirmodule com { module sun { module star { module test { 159cdf0e10cSrcweir interface X { void m(); }; 160cdf0e10cSrcweir}; }; }; }; 161cdf0e10cSrcweirservice S: com::sun::star::test::X { 162cdf0e10cSrcweir c([in] any... a); 163cdf0e10cSrcweir}; 164cdf0e10cSrcweir 165cdf0e10cSrcweir 166cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 20": 167cdf0e10cSrcweirmodule com { module sun { module star { module uno { 168cdf0e10cSrcweir interface XInterface { void m(); }; 169cdf0e10cSrcweir}; }; }; }; 170cdf0e10cSrcweirservice S: com::sun::star::uno::XInterface { 171cdf0e10cSrcweir c1([in] long a, [in] long b); 172cdf0e10cSrcweir c2([in] long a); 173cdf0e10cSrcweir}; 174cdf0e10cSrcweir 175cdf0e10cSrcweir 176cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 21": 177cdf0e10cSrcweirmodule com { module sun { module star { module uno { 178cdf0e10cSrcweir interface XInterface { void m(); }; 179cdf0e10cSrcweir}; }; }; }; 180cdf0e10cSrcweirservice S: com::sun::star::uno::XInterface { 181cdf0e10cSrcweir c1([in] long a); 182cdf0e10cSrcweir c2([in] long a, [in] long b); 183cdf0e10cSrcweir}; 184cdf0e10cSrcweir 185cdf0e10cSrcweir 186cdf0e10cSrcweirEXPECT SUCCESS "constructor.tests 22": 187cdf0e10cSrcweirmodule com { module sun { module star { module uno { 188cdf0e10cSrcweir interface XInterface { void m(); }; 189cdf0e10cSrcweir}; }; }; }; 190cdf0e10cSrcweirservice S: com::sun::star::uno::XInterface { 191cdf0e10cSrcweir c1([in] long a, [in] short b); 192cdf0e10cSrcweir c2([in] long a, [in] long b); 193cdf0e10cSrcweir}; 194