source: trunk/gcc/libjava/testsuite/libjava.lang/search_outer.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 540 bytes
Line 
1// Class search_outer.java
2// Generated on Thu Nov 18 18:40:43 UTC 1999
3//
4
5class search_outer {
6
7 private int foo;
8
9 class search_outer_inner {
10 void test () {
11 foo++;
12 System.out.println ("foo="+foo);
13 foo += 3;
14 System.out.println ("foo="+foo);
15 }
16 }
17 void foo ()
18 {
19 foo = 3;
20 search_outer_inner inn = this.new search_outer_inner ();
21 inn.test ();
22 }
23 public static void main (String[] arg)
24 {
25 System.out.println ("Testing class `search_outer'...");
26 new search_outer().foo ();
27 }
28}
Note: See TracBrowser for help on using the repository browser.