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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [PR242.java] - Rev 781

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

class Base
{
  int someNum()
  {
    System.out.println ("ok");
    return 0;
  }
}
 
public class PR242 extends Base
{
  public static void main(String args[])
  {
    new PR242();
  }
 
  PR242()
  {
    new Inner().a();
  }
 
  class Inner
  {
    public int dummy()
    {
      System.out.println ("wrong method called!!");
      return -1;
    }
 
    public void a()
    {
      System.out.println ("...");
      System.out.println (someNum());    
    }
  }
}
 

Go to most recent revision | 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.