summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/search_outer.java
blob: 66567df8b6d91992023f4babb0007411fa939288 (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
// Class search_outer.java
// Generated on Thu Nov 18 18:40:43 UTC 1999
//

class search_outer {

  private int foo;

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