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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
class Base
2
{
3
  int someNum()
4
  {
5
    System.out.println ("ok");
6
    return 0;
7
  }
8
}
9
 
10
public class PR242 extends Base
11
{
12
  public static void main(String args[])
13
  {
14
    new PR242();
15
  }
16
 
17
  PR242()
18
  {
19
    new Inner().a();
20
  }
21
 
22
  class Inner
23
  {
24
    public int dummy()
25
    {
26
      System.out.println ("wrong method called!!");
27
      return -1;
28
    }
29
 
30
    public void a()
31
    {
32
      System.out.println ("...");
33
      System.out.println (someNum());
34
    }
35
  }
36
}

powered by: WebSVN 2.1.0

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