aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/pr10459.java
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-07-09 23:36:51 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-07-10 00:36:51 +0100
commit6e342fc10055ae5ee9623458a610b6754743a603 (patch)
treea127f078834a9b8f99cdb980e895be1ea97b60d7 /libjava/testsuite/libjava.compile/pr10459.java
parent3d0d0a7abc844b8517eff551b262d47509a6a29e (diff)
downloadgcc-6e342fc10055ae5ee9623458a610b6754743a603.zip
gcc-6e342fc10055ae5ee9623458a610b6754743a603.tar.gz
gcc-6e342fc10055ae5ee9623458a610b6754743a603.tar.bz2
Fix or remove some bogus test cases.
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
Diffstat (limited to 'libjava/testsuite/libjava.compile/pr10459.java')
-rw-r--r--libjava/testsuite/libjava.compile/pr10459.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/libjava/testsuite/libjava.compile/pr10459.java b/libjava/testsuite/libjava.compile/pr10459.java
index 5bcc09c..e527f34 100644
--- a/libjava/testsuite/libjava.compile/pr10459.java
+++ b/libjava/testsuite/libjava.compile/pr10459.java
@@ -4,7 +4,12 @@ public class pr10459
public void aMethod() throws Throwable
{
- for (; ;x.clone().clone())
+ for (; ;x.foo().foo())
;
}
+
+ pr10459 foo()
+ {
+ return null;
+ }
}