source: trunk/gcc/libjava/testsuite/libjava.lang/private_indirect_read.java@ 3103

Last change on this file since 3103 was 2, checked in by bird, 23 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: 662 bytes
Line 
1// Class private_indirect_read
2// Generated on Tue Nov 16 15:34:56 UTC 1999
3//
4
5class private_indirect_read {
6
7 private int foo;
8
9 class private_indirect_read_inner {
10 void test () {
11 }
12 class other {
13 void testx () {
14 int x = foo;
15 System.out.println ("x="+x);
16 }
17 }
18
19 }
20 void foo ()
21 {
22 foo=670;
23 private_indirect_read_inner inn = this.new private_indirect_read_inner ();
24 private_indirect_read_inner.other o = inn.new other ();
25 o.testx();
26 }
27 public static void main (String[] arg)
28 {
29 System.out.println ("Testing class `private_indirect_read'...");
30 new private_indirect_read().foo ();
31 }
32}
Note: See TracBrowser for help on using the repository browser.