From 454f3f72c5d7a6f92debb4e4756e330397d507e6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann <sbergman@redhat.com> Date: Mon, 25 Nov 2013 17:25:08 +0100 Subject: Fix unoidl sourceprovider interface base and member checks ...and enable tests shared with idlc Change-Id: I422b16c9b2636835d276cc2085cb640073894c97 --- idlc/test/parser/methodoverload.tests | 62 +++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) (limited to 'idlc') diff --git a/idlc/test/parser/methodoverload.tests b/idlc/test/parser/methodoverload.tests index b6ce2760fb4d..9a07a4b2c864 100644 --- a/idlc/test/parser/methodoverload.tests +++ b/idlc/test/parser/methodoverload.tests @@ -113,3 +113,65 @@ interface Derived { [optional] interface Base1; [optional] interface Base2; }; + + +EXPECT FAILURE "methodoverload.tests 10": +interface I { + [attribute] long a; + [attribute] short a; +}; + + +EXPECT FAILURE "methodoverload.tests 11": +interface I1 { + [attribute] long a; +}; +interface I2 { + [attribute] short a; + interface I1; +}; + + +EXPECT FAILURE "methodoverload.tests 12": +interface I { + [attribute] long a; + void a(); +}; + + +EXPECT FAILURE "methodoverload.tests 13": +interface I1 { + [attribute] long a; +} +interface I2 { + void a(); + interface I1; +}; + + +EXPECT FAILURE "methodoverload.tests 14": +interface I1 { + void a(); +} +interface I2 { + [attribute] long a; + interface I1; +}; + + +EXPECT SUCCESS "methodoverload.tests 15": +interface I { + [attribute] long a; + void geta(); + void seta(); +}; + + +EXPECT SUCCESS "methodoverload.tests 16": +interface I1 { + [attribute] long a; +}; +interface I2: I1 { + void geta(); + void seta(); +}; -- cgit