summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-15 18:28:29 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-15 18:28:29 +0000
commit20f1123c923e66905a1d30cea7f621f1561bdcb2 (patch)
tree95d828a2f4003b9b74dc9a67de9b6acb41d7a654 /libjava
parent4267b9ea89763893c1b4f672499eff472da63298 (diff)
downloadgcc-20f1123c923e66905a1d30cea7f621f1561bdcb2.tar.gz
gcc/java:
PR java/21519: * jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Don't call NOTE_PUSH. libjava: PR java/21519: * testsuite/libjava.compile/pr21519.java: New file. * testsuite/libjava.compile/pr21519.no-link: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99739 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/testsuite/libjava.compile/pr21519.java8
-rw-r--r--libjava/testsuite/libjava.compile/pr21519.no-link0
3 files changed, 14 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 76714b43eb1..6778d0fddf2 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,11 @@
2005-05-15 Tom Tromey <tromey@redhat.com>
+ PR java/21519:
+ * testsuite/libjava.compile/pr21519.java: New file.
+ * testsuite/libjava.compile/pr21519.no-link: New file.
+
+2005-05-15 Tom Tromey <tromey@redhat.com>
+
* stacktrace.cc (getLineNumberForFrame): Use _Jv_GetSafeArg.
2005-05-13 Bryce McKinlay <mckinlay@redhat.com>
diff --git a/libjava/testsuite/libjava.compile/pr21519.java b/libjava/testsuite/libjava.compile/pr21519.java
new file mode 100644
index 00000000000..c836a8f9f7f
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/pr21519.java
@@ -0,0 +1,8 @@
+public class pr21519 {
+ char[] source;
+ public int compute(int pos) {
+ for (int i = 0; i < pos; ++i)
+ if (!(source[i] == ' ' || source[i] == '\t')) return -1;
+ return pos;
+ }
+}
diff --git a/libjava/testsuite/libjava.compile/pr21519.no-link b/libjava/testsuite/libjava.compile/pr21519.no-link
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/pr21519.no-link