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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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