Check MULTIANEWARRAY SAVEDVAR copy code.
[cacao.git] / tests / jctest.java
index f85e9dfb06aaf943dbdd6c677c7cb6bc51c5f342..3464cef818331fbc9bb1b42fae4a5e4cfc0c0237 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: jctest.java 1659 2004-12-03 15:44:28Z twisti $
+   $Id: jctest.java 1769 2004-12-17 12:30:34Z twisti $
 
 */
 
@@ -743,6 +743,22 @@ public class jctest implements jcinterface {
             p ("exception: negative array size");
         }
 
+        try {
+            p("savedvar size copy check: multi dimensional array");
+            Integer io = new Integer(10);
+            iaaa = new int[10][io.intValue()][10];
+            for (i = 0; i < 10; i++) {
+                for (int j = 0; j < 10; j++) {
+                    for (int k = 0; k < 10; k++) {
+                        iaaa[i][j][k] = 1;
+                    }
+                }
+            }
+            p("successfully created");
+        } catch (Exception e) {
+            p("error: exception thrown");
+        }
+
         iaaa = new int[2][3][4];
         long [][][] laaa = new long[2][3][6];
         float [][][] faaa = new float[2][3][4];