This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: PR 5848 test
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 12 Mar 2002 13:00:59 -0700
- Subject: Patch: FYI: PR 5848 test
- Reply-to: tromey at redhat dot com
I'm checking this in on the trunk and the branch.
This is a regression test for PR 5848.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
Test for PR java/5848:
* libjava.compile/PR5848.xfail: New file.
* libjava.compile/PR5848.java: New file.
Index: libjava.compile/PR5848.java
===================================================================
RCS file: PR5848.java
diff -N PR5848.java
--- /dev/null Tue May 5 13:32:27 1998
+++ libjava.compile/PR5848.java Tue Mar 12 11:29:06 2002
@@ -0,0 +1,14 @@
+import java.util.Vector;
+import java.util.Enumeration;
+
+public class PR5848
+{
+ private Vector data;
+ void sub()
+ {
+ long sz = 0;
+ for (Enumeration e = data.elements() ; e.hasMoreElements() ;) {
+ sz =+ ((byte[])e.nextElement()).length;
+ }
+ }
+}
Index: libjava.compile/PR5848.xfail
===================================================================
RCS file: PR5848.xfail
diff -N PR5848.xfail
--- /dev/null Tue May 5 13:32:27 1998
+++ libjava.compile/PR5848.xfail Tue Mar 12 11:29:06 2002
@@ -0,0 +1 @@
+no-link