* configure.ac: New switch for disabling -O2 (--disable-optimizations).
[cacao.git] / tests / stack / nestedstaticinitializers.java
1 class nestedstaticinitializers_clinit1 {
2         public static int x;
3         static {
4                 nestedstaticinitializers_clinit2.x=3;
5         }
6
7 }
8
9 class nestedstaticinitializers_clinit2 {
10         public static int x;
11         static {
12                 nestedstaticinitializers_clinit3.x=3;
13         }
14
15 }
16
17 class nestedstaticinitializers_clinit3 {
18         public static int x;
19         static {
20                 int y[]=new int[-1];
21         }
22
23 }
24
25 class nestedstaticinitializers {
26         public static void main (String args[]) {
27                 try {
28                         nestedstaticinitializers_clinit1.x=3;
29                 } catch (Throwable t) {
30                         t.printStackTrace();
31                 }
32         }
33 }