FDO insane profile
[official-gcc.git] / libjava / testsuite / libjava.lang / PR6204.java
blob06eb43d332e9b451105e980ad066814e3f3a45c3
1 class X
3 public Y getY()
5 return new Y(1);
6 }
9 class Y extends X
11 int i;
13 Y(int i)
15 this.i = i;
18 public Y getY()
20 return new Y(2);
24 class A
26 X x = new Y(-1);
27 public X getX() { return x; }
30 public class PR6204 extends A
32 public Y getY() { return super.getX().getY(); }
34 public static void main(String[] args)
36 System.out.println (new PR6204().getY().i);