Patch: FYI: PR 5848 test

Tom Tromey tromey@redhat.com
Tue Mar 12 14:51:00 GMT 2002


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



More information about the Java-patches mailing list