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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// Class t
2
// Generated on Thu Nov  4 16:35:03 PST 1999
3
//
4
 
5
class tmi {
6
  int i;
7
  void foo () {
8
    tmi.z x1 = new z();
9
    tmi.z.y x = x1.new y();
10
    x.bar ();
11
    x.print();
12
    tmi.this.i = 666;
13
    x.print();
14
    tmi.this.print();
15
  }
16
  void print () {
17
    System.out.println ("tmi.print()");
18
  }
19
  public static void main (String[] arg)
20
  {
21
    System.out.println ("Testing class `tmi'...");
22
    new tmi ().foo();
23
  }
24
  class z {
25
    int j;
26
    void foo () {
27
      tmi.this.i = 3;
28
    }
29
    class y {
30
      int k;
31
      void bar () {
32
        tmi.this.i = 3;
33
        tmi.this.print ();
34
        z.this.j = 4;
35
        y.this.k = 34;
36
      }
37
      void print () {
38
        System.out.println ("i="+i+", j="+j+", k="+k);
39
      }
40
    }
41
  }
42
}
43
 

powered by: WebSVN 2.1.0

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