2015-01-14 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libjava / testsuite / libjava.lang / anon3.java
blob0af8804d80126013474d76c4f4738883d0ab2ed2
1 // Class anon3
2 // Generated on Wed Dec 29 10:07:09 PST 1999
3 //
6 class anon3 {
8 itf bar () {
9 return new itf () {
10 int count = 5;
11 public void setCount (int j) { count = 3; }
12 public int getCount () { return count; }
13 } ;
16 void test () {
17 itf x = bar ();
18 System.out.println (x.getCount ());
21 public static void main (String[] arg)
23 System.out.println ("Testing class `anon3'...");
24 new anon3 ().test ();
28 interface itf { void setCount (int j); int getCount(); int count = 0; }