aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.0/libjava/testsuite/libjava.lang/PR6085.java
blob: f883bb5f83869152e02f6ef9dc720f5c3e60fc29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
public class PR6085
{
  public static void main(String[] args)
  {
    F1 f1 = new F1();
  }
  
    static class F1
    {
      F11 f11;
      F12 f12;
      
      F1()
      {
        f12 = new F12();
	System.out.println (f12.i);
	System.out.println (f12.k);
      }
      
      class F11
      { 
	int k = 90;
	F11() {}
      }

      class F12 extends F11 
      {
	int i;
	F12()
	{
	  i = 17;
	}
      }
    }
}