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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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