aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/PR140.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/testsuite/libjava.compile/PR140.java')
-rw-r--r--libjava/testsuite/libjava.compile/PR140.java13
1 files changed, 13 insertions, 0 deletions
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);
+ }
+}