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