summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/direct_read.java
blob: 57342849353a2e647ca3d4fadf7915e43ff4d4c6 (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_read
// Generated on Sat Nov 13 23:26:34 UTC 1999
//

class direct_read {

  int foo;

  class direct_read_inner {
    void test () {
      int x = foo;
      System.out.println ("x="+x);
    }
  }

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