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

Subversion Repositories openrisc

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

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

interface I
{
  int i = 1, ii = PR162.out ("ii", 2);
}
 
interface J extends I
{
  int j = PR162.out ("j", 3), jj = PR162.out ("jj", 4);
}
 
interface K extends J
{
  int k = PR162.out ("k", 5);
}
 
public class PR162
{
  public static void main (String[] args)
  {
    System.out.println (J.i);
    System.out.println (K.j);
  }
 
  public static int out (String s, int i)
  {
    System.out.println (s + "=" + i);
    return i;
  }
}
 

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.