xref: /aosp_15_r20/dalvik/dx/tests/070-dex-multianewarray/Blort.java (revision 055d459012065f78d96b68be8421640240ddf631)
1*055d4590SKeyi Gui /*
2*055d4590SKeyi Gui  * Copyright (C) 2007 The Android Open Source Project
3*055d4590SKeyi Gui  *
4*055d4590SKeyi Gui  * Licensed under the Apache License, Version 2.0 (the "License");
5*055d4590SKeyi Gui  * you may not use this file except in compliance with the License.
6*055d4590SKeyi Gui  * You may obtain a copy of the License at
7*055d4590SKeyi Gui  *
8*055d4590SKeyi Gui  *      http://www.apache.org/licenses/LICENSE-2.0
9*055d4590SKeyi Gui  *
10*055d4590SKeyi Gui  * Unless required by applicable law or agreed to in writing, software
11*055d4590SKeyi Gui  * distributed under the License is distributed on an "AS IS" BASIS,
12*055d4590SKeyi Gui  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*055d4590SKeyi Gui  * See the License for the specific language governing permissions and
14*055d4590SKeyi Gui  * limitations under the License.
15*055d4590SKeyi Gui  */
16*055d4590SKeyi Gui 
17*055d4590SKeyi Gui public class Blort
18*055d4590SKeyi Gui {
test01()19*055d4590SKeyi Gui     public static Object test01() {
20*055d4590SKeyi Gui         Object[][] x = new Object[2][5];
21*055d4590SKeyi Gui         return x;
22*055d4590SKeyi Gui     }
23*055d4590SKeyi Gui 
test02()24*055d4590SKeyi Gui     public static Object test02() {
25*055d4590SKeyi Gui         Object[][][] x = new Object[4][1][];
26*055d4590SKeyi Gui         return x;
27*055d4590SKeyi Gui     }
28*055d4590SKeyi Gui 
test03()29*055d4590SKeyi Gui     public static Object test03() {
30*055d4590SKeyi Gui         Object[][][] x = new Object[7][2][4];
31*055d4590SKeyi Gui         return x;
32*055d4590SKeyi Gui     }
33*055d4590SKeyi Gui 
test04()34*055d4590SKeyi Gui     public static Object test04() {
35*055d4590SKeyi Gui         Object[][][] x = new Object[3][0][0];
36*055d4590SKeyi Gui         return x;
37*055d4590SKeyi Gui     }
38*055d4590SKeyi Gui 
test05()39*055d4590SKeyi Gui     public static Object test05() {
40*055d4590SKeyi Gui         Object[][][][] x = new Object[1][3][5][7];
41*055d4590SKeyi Gui         return x;
42*055d4590SKeyi Gui     }
43*055d4590SKeyi Gui 
test06()44*055d4590SKeyi Gui     public static Object test06() {
45*055d4590SKeyi Gui         Object[][][][][] x = new Object[8][7][2][3][4];
46*055d4590SKeyi Gui         return x;
47*055d4590SKeyi Gui     }
48*055d4590SKeyi Gui 
test07()49*055d4590SKeyi Gui     public static Object test07() {
50*055d4590SKeyi Gui         Object[][][][][][] x = new Object[8][7][2][3][4][];
51*055d4590SKeyi Gui         return x;
52*055d4590SKeyi Gui     }
53*055d4590SKeyi Gui 
test08()54*055d4590SKeyi Gui     public static Object test08() {
55*055d4590SKeyi Gui         Object[][][][][][][] x = new Object[8][7][2][3][4][][];
56*055d4590SKeyi Gui         return x;
57*055d4590SKeyi Gui     }
58*055d4590SKeyi Gui 
test09()59*055d4590SKeyi Gui     public static boolean[][] test09() {
60*055d4590SKeyi Gui         return new boolean[1][2];
61*055d4590SKeyi Gui     }
62*055d4590SKeyi Gui 
test10()63*055d4590SKeyi Gui     public static byte[][] test10() {
64*055d4590SKeyi Gui         return new byte[3][4];
65*055d4590SKeyi Gui     }
66*055d4590SKeyi Gui 
test11()67*055d4590SKeyi Gui     public static char[][] test11() {
68*055d4590SKeyi Gui         return new char[5][6];
69*055d4590SKeyi Gui     }
70*055d4590SKeyi Gui 
test12()71*055d4590SKeyi Gui     public static double[][] test12() {
72*055d4590SKeyi Gui         return new double[7][8];
73*055d4590SKeyi Gui     }
74*055d4590SKeyi Gui 
test13()75*055d4590SKeyi Gui     public static float[][] test13() {
76*055d4590SKeyi Gui         return new float[9][1];
77*055d4590SKeyi Gui     }
78*055d4590SKeyi Gui 
test14()79*055d4590SKeyi Gui     public static int[][][] test14() {
80*055d4590SKeyi Gui         return new int[5][3][2];
81*055d4590SKeyi Gui     }
82*055d4590SKeyi Gui 
test15()83*055d4590SKeyi Gui     public static long[][][] test15() {
84*055d4590SKeyi Gui         return new long[3][4][7];
85*055d4590SKeyi Gui     }
86*055d4590SKeyi Gui 
test16()87*055d4590SKeyi Gui     public static short[][][][] test16() {
88*055d4590SKeyi Gui         return new short[5][4][3][2];
89*055d4590SKeyi Gui     }
90*055d4590SKeyi Gui 
test17()91*055d4590SKeyi Gui     public static String[][][][][] test17() {
92*055d4590SKeyi Gui         return new String[5][4][3][2][1];
93*055d4590SKeyi Gui     }
94*055d4590SKeyi Gui 
test18()95*055d4590SKeyi Gui     public static Runnable[][][][][][] test18() {
96*055d4590SKeyi Gui         return new Runnable[5][4][3][2][1][8];
97*055d4590SKeyi Gui     }
98*055d4590SKeyi Gui }
99