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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [override.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
// Regression test that overrides a virtual method with a final one.
2
 
3
class override1
4
{
5
  public int x1 () { return 3; }
6
}
7
 
8
public class override extends override1
9
{
10
  public final int x1() { return 5; }
11
  public final int x2() { return 7; }
12
 
13
  public static void main(String[] args)
14
  {
15
    override z = new override();
16
    System.out.println(z.x1());
17
    System.out.println(z.x2());
18
  }
19
}

powered by: WebSVN 2.1.0

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