From 9f30f4f96b386c12f936841411d08874e17985ab Mon Sep 17 00:00:00 2001 From: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50674 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 00000000000..a1270ff6e59 --- /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.2.3