aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/initfield.java
blob: 4ee6154806d6b46f463638c644b19b0af88099b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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);
  }
}