diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-04-19 12:46:41 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-04-19 12:46:41 +0000 |
commit | ab875e38c1663fc531a791e3111a4a3b8f937589 (patch) | |
tree | 47dd266dd136dd84c60fe061287316d9123d9519 /idlc/test | |
parent | 57492802b23349478ab3a7c68b108617a9e4f311 (diff) |
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.
Diffstat (limited to 'idlc/test')
-rw-r--r-- | idlc/test/parser/constructor.tests | 54 |
1 files 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<long> a); + c2([in] sequence<T> 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<any> 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); +}; |