source: trunk/gcc/libjava/testsuite/libjava.lang/private_direct_read.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: 533 bytes
Line 
1// Class private_direct_read
2// Generated on Tue Nov 16 15:04:13 UTC 1999
3//
4
5class private_direct_read {
6
7 private int foo;
8
9 class private_direct_read_inner {
10 void test () {
11 int x = foo;
12 System.out.println ("x="+x);
13 }
14 }
15 void foo ()
16 {
17 foo = 670;
18 private_direct_read_inner inn = this.new private_direct_read_inner ();
19 inn.test ();
20 }
21 public static void main (String[] arg)
22 {
23 System.out.println ("Testing class `private_direct_read'...");
24 new private_direct_read().foo ();
25 }
26}
Note: See TracBrowser for help on using the repository browser.