summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/direct_write.java
blob: 2745f8601c88f24c87fa2c5285ffd4bc71e55c5b (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
// Class direct_write
// Generated on Mon Nov 15 17:10:56 UTC 1999
//

class direct_write {

  int foo;

  class direct_write_inner {
    void test () {
      foo  = 670;
    }
  }

  void foo ()
  {
    foo = 650;
    direct_write_inner inn = this.new direct_write_inner ();
    inn.test ();
    System.out.println ("foo="+foo);
  }  
  public static void main (String[] arg)
  {
    System.out.println ("Testing class `direct_write'...");
    new direct_write().foo ();
  }
}