summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-25 17:25:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-25 17:27:36 +0100
commitf16aa10d1a0f8ae69fdd617f054e6bfe2a063517 (patch)
treeafb641c9c8b4df5efb7760045ee3df25e7b36aaa /idlc
parent592ad650350d5a7dda2b0729f109c0cfbaf98e6e (diff)
Fix unoidl sourceprovider interface base and member checks
...and enable tests shared with idlc Change-Id: I422b16c9b2636835d276cc2085cb640073894c97 (cherry picked from commit 454f3f72c5d7a6f92debb4e4756e330397d507e6)
Diffstat (limited to 'idlc')
-rw-r--r--idlc/test/parser/methodoverload.tests62
1 files changed, 62 insertions, 0 deletions
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();
+};