summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/libjava.compile/PR5848.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-12 19:51:44 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-12 19:51:44 +0000
commit9f30f4f96b386c12f936841411d08874e17985ab (patch)
tree75513e93e8295f9472cb603c2d8c1e5f784681db /libjava/testsuite/libjava.compile/PR5848.java
parent02159c3fb74a7ffb418c7dae7717b965905b94d0 (diff)
downloadppe42-gcc-9f30f4f96b386c12f936841411d08874e17985ab.tar.gz
ppe42-gcc-9f30f4f96b386c12f936841411d08874e17985ab.zip
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
Diffstat (limited to 'libjava/testsuite/libjava.compile/PR5848.java')
-rw-r--r--libjava/testsuite/libjava.compile/PR5848.java14
1 files changed, 14 insertions, 0 deletions
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;
+ }
+ }
+}
OpenPOWER on IntegriCloud