source: trunk/gcc/libjava/testsuite/libjava.lang/indirect_read.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: 587 bytes
Line 
1// Class indirect_read
2// Generated on Mon Nov 15 17:20:40 UTC 1999
3//
4
5class 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}
Note: See TracBrowser for help on using the repository browser.