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

Subversion Repositories openrisc

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

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

// gcj generated buggy code when we reference a field of a
// non-constant member that we inherit from an interface.
 
interface iface
{
  final value x = new value();
}
 
final class value
{
  Object field = "maude";
}
 
public class initfield implements iface
{
  public static void main(String[] args)
  {
    System.out.println(x.field);
  }
}
 

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.