From 5a471df6f90bc64da849851237864184394f77ae Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 12 Mar 2002 19:51:44 +0000 Subject: Test for PR java/5848: * libjava.compile/PR5848.xfail: New file. * libjava.compile/PR5848.java: New file. From-SVN: r50674 --- libjava/testsuite/libjava.compile/PR5848.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR5848.java (limited to 'libjava/testsuite/libjava.compile/PR5848.java') diff --git a/libjava/testsuite/libjava.compile/PR5848.java b/libjava/testsuite/libjava.compile/PR5848.java new file mode 100644 index 0000000..a1270ff --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR5848.java @@ -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; + } + } +} -- cgit v1.1