source: trunk/gcc/libjava/testsuite/libjava.lang/private_indirect_write.java@ 3127

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