summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/indirect_write.java
blob: 2f2bb74435d27113c3957868daa7e89688bb1b9a (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
// Class indirect_write
// Generated on Tue Nov 16 15:01:24 UTC 1999
//

class indirect_write {

  int foo;

  class indirect_write_inner {
    void test () {
    }

    class other {
      void testx () {
        foo = 670;
      }
    }

  }
  void foo ()
  {
    indirect_write_inner inn = this.new indirect_write_inner ();
    indirect_write_inner.other x = inn.new other ();
    x.testx();
    System.out.println ("foo="+foo);
  }  
  public static void main (String[] arg)
  {
    System.out.println ("Testing class `indirect_write'...");
    new indirect_write().foo ();
  }
}