* tests/regression/junit/Makefile.am (JAVACCMD): Added -source 1.5
[cacao.git] / tests / stack / nestedstaticinitializers3.java
1 class nestedstaticinitializers3_clinit1 extends nestedstaticinitializers3_clinit2 {
2
3         public nestedstaticinitializers3_clinit1() {
4                 System.out.println("Never reached");
5         }
6
7         public static int x1;
8         static {
9                 x1=1;
10         }
11
12 }
13
14 class nestedstaticinitializers3_clinit2 {
15         public static int x;
16         static {
17                 nestedstaticinitializers2_clinit3.x=3;
18         }
19
20 }
21
22 class nestedstaticinitializers3_clinit3 {
23         public static int x;
24         static {
25                 int y[]=new int[-1];
26         }
27
28 }
29
30 class nestedstaticinitializers3 {
31         public static void main (String args[]) {
32                 try {
33                         nestedstaticinitializers2_clinit1  x[]=new nestedstaticinitializers2_clinit1[10];
34                         x[0]=new nestedstaticinitializers2_clinit1();
35                 } catch (Throwable t) {
36                         t.printStackTrace();
37                 }
38         }
39 }