OSDN Git Service

2004-08-10 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / libjava.lang / indirect_read.java
1 // Class indirect_read
2 // Generated on Mon Nov 15 17:20:40 UTC 1999
3 //
4
5 class indirect_read {
6
7   int foo;
8
9   class indirect_read_inner {
10     void test () {
11     }
12
13     class other {
14       void testx () {
15         int x = foo;
16         System.out.println ("x="+x);
17       }
18     }
19
20   }
21   void foo ()
22   {
23     foo = 670;
24     indirect_read_inner inn = this.new indirect_read_inner ();
25     indirect_read_inner.other o = inn.new other ();
26     o.testx ();
27   }  
28   public static void main (String[] arg)
29   {
30     System.out.println ("Testing class `indirect_read'...");
31     new indirect_read().foo ();
32   }
33 }