diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-25 15:04:48 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-25 15:04:48 +0000 |
commit | 1eec1ebd539909ce2d9a948173ec04155a5b9c52 (patch) | |
tree | d813aa1e4391f3c207e488ac59256a8db6b9cbce /libjava | |
parent | a595e348fbf3cda50be4b8c3523346f56e823430 (diff) | |
download | ppe42-gcc-1eec1ebd539909ce2d9a948173ec04155a5b9c52.tar.gz ppe42-gcc-1eec1ebd539909ce2d9a948173ec04155a5b9c52.zip |
2000-04-25 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.compile/MethodFailure4.java: New file.
* libjava.compile/MethodFailure4.out: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33415 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/MethodFailure4.java | 40 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/MethodFailure4.xfail | 1 |
3 files changed, 46 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 54a39c4d026..5119c6bfeeb 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-04-25 Alexandre Petit-Bianco <apbianco@cygnus.com> + + * libjava.compile/MethodFailure4.java: New file. + * libjava.compile/MethodFailure4.out: New file. + 2000-04-20 Alexandre Petit-Bianco <apbianco@cygnus.com> * libjava.compile/block.java: New file. diff --git a/libjava/testsuite/libjava.compile/MethodFailure4.java b/libjava/testsuite/libjava.compile/MethodFailure4.java new file mode 100644 index 00000000000..bed3a0e1311 --- /dev/null +++ b/libjava/testsuite/libjava.compile/MethodFailure4.java @@ -0,0 +1,40 @@ +import java.util.*; + +public class MethodFailure4 { + + public static String call(A obj) { + return "A"; + } + public static String call(I obj) { + return "I"; + } + + interface I {} + static class A {} + static class B extends A implements I {} + static class C extends B {} + + + public static A getA() { + return new A(); + } + + public static B getB() { + return new B(); + } + + public static C getC() { + return new C(); + } + + public static I getI() { + return new C(); + } + + // this method invocation is ambiguous + + public static void main(String[] argv) { + call( getC() ); + } + +} diff --git a/libjava/testsuite/libjava.compile/MethodFailure4.xfail b/libjava/testsuite/libjava.compile/MethodFailure4.xfail new file mode 100644 index 00000000000..e3b083b1fa5 --- /dev/null +++ b/libjava/testsuite/libjava.compile/MethodFailure4.xfail @@ -0,0 +1 @@ +shouldfail |