summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile
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
parent02159c3fb74a7ffb418c7dae7717b965905b94d0 (diff)
downloadgcc-9f30f4f96b386c12f936841411d08874e17985ab.tar.gz
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')
-rw-r--r--libjava/testsuite/libjava.compile/PR5848.java14
-rw-r--r--libjava/testsuite/libjava.compile/PR5848.xfail1
2 files changed, 15 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;
+ }
+ }
+}
diff --git a/libjava/testsuite/libjava.compile/PR5848.xfail b/libjava/testsuite/libjava.compile/PR5848.xfail
new file mode 100644
index 00000000000..76540afa49b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR5848.xfail
@@ -0,0 +1 @@
+no-link