Retro68/gcc/libjava/testsuite/libjava.lang/search_outer.java

29 lines
540 B
Java
Raw Normal View History

2012-03-27 23:13:14 +00:00
// 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 ();
}
}