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] - Rev 765

Compare with Previous | Blame | View Log

// Class final_int
// Generated on Sat Feb 12 01:27:46 PST 2000
 
class final_int {
 
  final int x = 30;
 
  class foo {
    int bar () {
      return x;
    }
  }
  void bar () {
    int x = this.new foo ().bar ();
    System.out.println (x);
  }
  public static void main (String[] arg)
  {
    System.out.println ("Testing class `final_int'...");
    new final_int().bar ();
  }
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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