OSDN Git Service

Test for PR java/5848:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2002 19:51:44 +0000 (19:51 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2002 19:51:44 +0000 (19:51 +0000)
* libjava.compile/PR5848.xfail: New file.
* libjava.compile/PR5848.java: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50674 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.compile/PR5848.java [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR5848.xfail [new file with mode: 0644]

index 05b20d5..315677c 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-12  Tom Tromey  <tromey@redhat.com>
+
+       Test for PR java/5848:
+       * libjava.compile/PR5848.xfail: New file.
+       * libjava.compile/PR5848.java: New file.
+
 2002-03-12  Eric Blake  <ebb9@email.byu.edu>
 
        * libjava.compile/PR5913.java: Expand test.
diff --git a/libjava/testsuite/libjava.compile/PR5848.java b/libjava/testsuite/libjava.compile/PR5848.java
new file mode 100644 (file)
index 0000000..a1270ff
--- /dev/null
@@ -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;
+    }
+  }
+}
diff --git a/libjava/testsuite/libjava.compile/PR5848.xfail b/libjava/testsuite/libjava.compile/PR5848.xfail
new file mode 100644 (file)
index 0000000..76540af
--- /dev/null
@@ -0,0 +1 @@
+no-link