Defined SUPPORT_CONST_ASTORE and SUPPORT_ONLY_ZERO_ASTORE.
[cacao.git] / tests / kaffe / IndexTest.java
1 class IndexTest {
2         public static void main (String args[]) {
3                 try {
4                         int array[] = new int[5];
5                         for (int i = 0; i < 10; i++) {
6                                 System.out.println(i);
7                                 array[i] = 1;
8                         }
9                 }
10                 catch (Exception c) {
11                         System.out.println("Catch");
12                         c.printStackTrace();
13                 }
14         }
15 }
16
17
18 /* Expected Output:
19 0
20 1
21 2
22 3
23 4
24 5
25 Catch
26 java.lang.ArrayIndexOutOfBoundsException
27         at IndexTest.main(IndexTest.java:7)
28 */