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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
// Class indirect_read
2
// Generated on Mon Nov 15 17:20:40 UTC 1999
3
//
4
 
5
class indirect_read {
6
 
7
  int foo;
8
 
9
  class indirect_read_inner {
10
    void test () {
11
    }
12
 
13
    class other {
14
      void testx () {
15
        int x = foo;
16
        System.out.println ("x="+x);
17
      }
18
    }
19
 
20
  }
21
  void foo ()
22
  {
23
    foo = 670;
24
    indirect_read_inner inn = this.new indirect_read_inner ();
25
    indirect_read_inner.other o = inn.new other ();
26
    o.testx ();
27
  }
28
  public static void main (String[] arg)
29
  {
30
    System.out.println ("Testing class `indirect_read'...");
31
    new indirect_read().foo ();
32
  }
33
}

powered by: WebSVN 2.1.0

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