From ab875e38c1663fc531a791e3111a4a3b8f937589 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Wed, 19 Apr 2006 12:46:41 +0000 Subject: [PATCH] INTEGRATION: CWS sb49 (1.3.20); FILE MERGED 2006/03/16 10:13:00 sb 1.3.20.2: #i62098# Fixed previous fix (and added a testcase). 2006/03/15 16:21:33 sb 1.3.20.1: #i62098# Added check that no two service ctors have the same signature; along the way, added some helper functions and some missing const qualifiers. --- idlc/test/parser/constructor.tests | 54 ++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/idlc/test/parser/constructor.tests b/idlc/test/parser/constructor.tests index 8dcb2a2e5d34..0c7ddfdd1f06 100644 --- a/idlc/test/parser/constructor.tests +++ b/idlc/test/parser/constructor.tests @@ -4,9 +4,9 @@ # # $RCSfile: constructor.tests,v $ # -# $Revision: 1.3 $ +# $Revision: 1.4 $ # -# last change: $Author: rt $ $Date: 2005-09-07 18:17:34 $ +# last change: $Author: hr $ $Date: 2006-04-19 13:46:41 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -167,3 +167,53 @@ interface X {}; singleton S: X { f(); }; + + +EXPECT FAILURE "constructor.tests 15": +module com { module sun { module star { module uno { + interface XInterface {}; +service S: com::sun::star::uno::XInterface { + c1([in] long a, [in] com::sun::star::uno::XInterface b); + c2([in] long c, [in] XInterface d); +}; +}; }; }; }; + + +EXPECT FAILURE "constructor.tests 16": +module com { module sun { module star { module uno { + interface XInterface {}; +}; }; }; }; +typedef long T; +service S: com::sun::star::uno::XInterface { + c1([in] sequence a); + c2([in] sequence b); +}; + + +EXPECT FAILURE "constructor.tests 17": +module com { module sun { module star { module uno { + interface XInterface {}; +}; }; }; }; +service S: com::sun::star::uno::XInterface { + c1([in] any... a); + c2([in] any... b); +}; + + +EXPECT SUCCESS "constructor.tests 18": +module com { module sun { module star { module uno { + interface XInterface {}; +}; }; }; }; +service S: com::sun::star::uno::XInterface { + c1([in] any... a); + c2([in] sequence b); +}; + + +EXPECT SUCCESS "constructor.tests 19": +module com { module sun { module star { module uno { + interface XInterface { void m(); }; +}; }; }; }; +service S: com::sun::star::uno::XInterface { + c([in] any... a); +};