aboutsummaryrefslogtreecommitdiff
path: root/src/test/test2/NewArray.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test2/NewArray.java')
-rw-r--r--src/test/test2/NewArray.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/test2/NewArray.java b/src/test/test2/NewArray.java
new file mode 100644
index 0000000..f7c0439
--- /dev/null
+++ b/src/test/test2/NewArray.java
@@ -0,0 +1,19 @@
+package test2;
+
+@SuppressWarnings("unused")
+public class NewArray {
+ public int run() {
+ return foo(1);
+ }
+
+ public int foo(int i) {
+ String[] s1 = new String[3];
+ String[][] s2 = new String[4][];
+ String[][] s3 = new String[5][6];
+ int[] i1 = new int[7];
+ int[][] i2 = new int[8][];
+ int[][] i3 = new int[9][10];
+ int[][][] i4 = new int[11][12][];
+ return i;
+ }
+}