summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-12-09 01:20:38 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-12-09 01:20:38 +0000
commit1d9033cb3fe3ddb0ff14dc2eed9af05a83f80886 (patch)
treed7c0017ad448aaa7e9fffa8397febb65cefa1643
parentda549e294b283570d11ebd580b7efe478fa60d1d (diff)
downloadgcc-1d9033cb3fe3ddb0ff14dc2eed9af05a83f80886.tar.gz
Test for PR libgcj/8823:
* libjava.lang/pr8823.java: New file. * libjava.lang/pr8823.out: New file. From-SVN: r59953
-rw-r--r--libjava/testsuite/ChangeLog6
-rw-r--r--libjava/testsuite/libjava.lang/pr8823.java24
-rw-r--r--libjava/testsuite/libjava.lang/pr8823.out1
3 files changed, 31 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index fa168d8f586..9dcf38deb67 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2002-12-08 Tom Tromey <tromey@redhat.com>
+
+ Test for PR libgcj/8823:
+ * libjava.lang/pr8823.java: New file.
+ * libjava.lang/pr8823.out: New file.
+
2002-12-05 Tom Tromey <tromey@redhat.com>
* libjava.lang/override.java: New file.
diff --git a/libjava/testsuite/libjava.lang/pr8823.java b/libjava/testsuite/libjava.lang/pr8823.java
new file mode 100644
index 00000000000..3327ddf7a2a
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/pr8823.java
@@ -0,0 +1,24 @@
+interface I
+{
+ public void m();
+}
+
+abstract class A implements I
+{
+ // But doesn't define m()
+}
+
+public class pr8823 extends A // which means it implements I
+{
+ public static void main(String[] args)
+ {
+ // Defining c as either I or C will work.
+ A c = new pr8823();
+ c.m();
+ }
+
+ public void m()
+ {
+ System.out.println("Hello World!");
+ }
+}
diff --git a/libjava/testsuite/libjava.lang/pr8823.out b/libjava/testsuite/libjava.lang/pr8823.out
new file mode 100644
index 00000000000..980a0d5f19a
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/pr8823.out
@@ -0,0 +1 @@
+Hello World!