Fix or remove some bogus test cases.
authorBryce McKinlay <mckinlay@redhat.com>
Fri, 9 Jul 2004 23:36:51 +0000 (23:36 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Fri, 9 Jul 2004 23:36:51 +0000 (00:36 +0100)
2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

Fix or remove some bogus test cases.
* testsuite/libjava.compile/pr10459_2.java: Removed.
* testsuite/libjava.compile/pr10459.java: Test using its own method,
not Object.clone().
* testsuite/libjava.compile/inner_data.java: Test against its own
protected field.

From-SVN: r84420

libjava/ChangeLog
libjava/testsuite/libjava.compile/inner_data.java
libjava/testsuite/libjava.compile/pr10459.java
libjava/testsuite/libjava.compile/pr10459_2.java [deleted file]

index 3a2a9b2b6877467b06bb14cacb4b62ddc163e885..76cccd281d76088033eb09a1b33733e0c6f686ca 100644 (file)
@@ -1,3 +1,12 @@
+2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
+
+       Fix or remove some bogus test cases.
+       * testsuite/libjava.compile/pr10459_2.java: Removed.
+       * testsuite/libjava.compile/pr10459.java: Test using its own method,
+       not Object.clone().
+       * testsuite/libjava.compile/inner_data.java: Test against its own
+       protected field.
+
 2004-07-09  Michael Koch  <konqueror@gmx.de>
 
        * scripts/unicode-muncher.pl: Updated to version 2.1
index 63d4902f366b1c4b2f6a74f3bdeafeb59d94ed41..0bb35e8902a27d61b439bdd76c89fb9a40568c27 100644 (file)
@@ -4,7 +4,7 @@ import java.util.Random;
 
 public class inner_data
 {
-    private class Randomer extends Random {
+    private class Randomer extends Super {
        public long xxx ()
        {
            return seed;
@@ -12,3 +12,7 @@ public class inner_data
     }
 }
 
+class Super
+{
+  protected long seed;
+}
index 5bcc09c73268c9f7baa7e80bba531a421926dd70..e527f34d2a961cf754595d5144455a3966a94359 100644 (file)
@@ -4,7 +4,12 @@ public class pr10459
 
   public void aMethod() throws Throwable
   {
-    for (; ;x.clone().clone())
+    for (; ;x.foo().foo())
       ;
   }
+  
+  pr10459 foo() 
+  {
+    return null;
+  }
 }
diff --git a/libjava/testsuite/libjava.compile/pr10459_2.java b/libjava/testsuite/libjava.compile/pr10459_2.java
deleted file mode 100644 (file)
index 5b878ca..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-public class pr10459_2
-{
-  pr10459_2 x;
-
-  public void aMethod() throws Throwable
-  {
-    for (; ;x.clone().clone())
-      break;
-  }
-}