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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
// Class final_int
2
// Generated on Sat Feb 12 01:27:46 PST 2000
3
 
4
class final_int {
5
 
6
  final int x = 30;
7
 
8
  class foo {
9
    int bar () {
10
      return x;
11
    }
12
  }
13
  void bar () {
14
    int x = this.new foo ().bar ();
15
    System.out.println (x);
16
  }
17
  public static void main (String[] arg)
18
  {
19
    System.out.println ("Testing class `final_int'...");
20
    new final_int().bar ();
21
  }
22
}

powered by: WebSVN 2.1.0

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