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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// gcj generated buggy code when we reference a field of a
2
// non-constant member that we inherit from an interface.
3
 
4
interface iface
5
{
6
  final value x = new value();
7
}
8
 
9
final class value
10
{
11
  Object field = "maude";
12
}
13
 
14
public class initfield implements iface
15
{
16
  public static void main(String[] args)
17
  {
18
    System.out.println(x.field);
19
  }
20
}

powered by: WebSVN 2.1.0

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