1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28EXPECT FAILURE "methodoverload.tests 1":
29interface Derived {
30	void f();
31	void f();
32};
33
34
35EXPECT FAILURE "methodoverload.tests 2":
36interface Base {
37	void f();
38};
39interface Derived {
40	interface Base;
41	void f();
42};
43
44
45EXPECT FAILURE "methodoverload.tests 3":
46interface Base {
47	void f();
48};
49interface Derived {
50	void f();
51	interface Base;
52};
53
54
55EXPECT FAILURE "methodoverload.tests 4":
56interface Base {
57	void f();
58};
59interface Derived {
60	[optional] interface Base;
61	void f();
62};
63
64
65EXPECT FAILURE "methodoverload.tests 5":
66interface Base {
67	void f();
68};
69interface Derived {
70	void f();
71	[optional] interface Base;
72};
73
74
75EXPECT FAILURE "methodoverload.tests 6":
76interface Base1 {
77	void f();
78};
79interface Base2 {
80	void f();
81};
82interface Derived {
83	interface Base1;
84	interface Base2;
85};
86
87
88EXPECT FAILURE "methodoverload.tests 7":
89interface Base1 {
90	void f();
91};
92interface Base2 {
93	void f();
94};
95interface Derived {
96	[optional] interface Base1;
97	interface Base2;
98};
99
100
101EXPECT FAILURE "methodoverload.tests 8":
102interface Base1 {
103	void f();
104};
105interface Base2 {
106	void f();
107};
108interface Derived {
109	interface Base1;
110	[optional] interface Base2;
111};
112
113
114EXPECT SUCCESS "methodoverload.tests 9":
115interface Base1 {
116	void f();
117};
118interface Base2 {
119	void f();
120};
121interface Derived {
122	[optional] interface Base1;
123	[optional] interface Base2;
124};
125