For PR libgcj/7482:
authorTom Tromey <tromey@redhat.com>
Thu, 24 Jul 2003 17:17:24 +0000 (17:17 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 24 Jul 2003 17:17:24 +0000 (17:17 +0000)
* libjava.lang/PR7482.java: New file.
* libjava.lang/PR7482.out: New file.

From-SVN: r69750

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.lang/PR7482.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/PR7482.out [new file with mode: 0644]

index 8c37e22858ebd69f110ecc091c872df875794814..af588e0af4fe6383c34815a36286d70b02bbbd28 100644 (file)
@@ -1,3 +1,9 @@
+2003-07-24  Tom Tromey  <tromey@redhat.com>
+
+       For PR libgcj/7482:
+       * libjava.lang/PR7482.java: New file.
+       * libjava.lang/PR7482.out: New file.
+
 2003-07-20  Tom Tromey  <tromey@redhat.com>
 
        * libjava.mauve/mauve.exp (mauve_find_harness_files): New proc.
diff --git a/libjava/testsuite/libjava.lang/PR7482.java b/libjava/testsuite/libjava.lang/PR7482.java
new file mode 100644 (file)
index 0000000..223fea6
--- /dev/null
@@ -0,0 +1,35 @@
+public class PR7482
+{
+  private interface I { }
+  private static class B { }
+  private static class U extends B implements I { }
+  private static class V extends B implements I { }
+
+  static I field;
+
+  private static void g1(Object o)
+  {
+    I val;
+    if (o == null)
+      val = new U();
+    else
+      val = new V();
+    field = val;
+  }
+
+  private static I g2(Object o)
+  {
+    I val;
+    if (o == null)
+      val = new U();
+    else
+      val = new V();
+    return val;
+  }
+
+  public static void main(String[] args)
+  {
+    g1(null);
+    g2(null);
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/PR7482.out b/libjava/testsuite/libjava.lang/PR7482.out
new file mode 100644 (file)
index 0000000..e69de29