aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-03-15 01:45:10 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-03-15 01:45:10 +0000
commit87ee36a8d9a85466fab0704657ae366779134d68 (patch)
tree88108215cb1a60ae6cfc4344413522d1e7fe0770 /libjava/testsuite
parent2d926395014049357f052b3f708517c9ae66bb50 (diff)
downloadgcc-87ee36a8d9a85466fab0704657ae366779134d68.zip
gcc-87ee36a8d9a85466fab0704657ae366779134d68.tar.gz
gcc-87ee36a8d9a85466fab0704657ae366779134d68.tar.bz2
* libjava.compile/PR140.java: New file, for PR gcj/140.
From-SVN: r32551
Diffstat (limited to 'libjava/testsuite')
-rw-r--r--libjava/testsuite/ChangeLog2
-rw-r--r--libjava/testsuite/libjava.compile/PR140.java13
2 files changed, 15 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index d64db5e..c3cce16 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -1,5 +1,7 @@
2000-03-14 Tom Tromey <tromey@cygnus.com>
+ * libjava.compile/PR140.java: New file, for PR gcj/140.
+
* libjava.compile/pr172.java: New file, for PR gcj/172.
* libjava.compile/pr174.java: New file, for PR gcj/174.
diff --git a/libjava/testsuite/libjava.compile/PR140.java b/libjava/testsuite/libjava.compile/PR140.java
new file mode 100644
index 0000000..0f59d6e
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR140.java
@@ -0,0 +1,13 @@
+public class PR140 {
+ public static void fill(int[] a) {
+ for (int i = 0; i < a.length; i++) {
+ a[i] = i;
+ }
+ }
+ public static void main(String[] args) {
+ int[] a = new int[3];
+ fill(a);
+ a.length = 3000;
+ fill(a);
+ }
+}