OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [private_direct_read.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// Class private_direct_read
2
// Generated on Tue Nov 16 15:04:13 UTC 1999
3
//
4
 
5
class 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.