source: branches/libc-0.6/src/gcc/libjava/testsuite/libjava.lang/initfield.java@ 3103

Last change on this file since 3103 was 1389, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 345 bytes
Line 
1// gcj generated buggy code when we reference a field of a
2// non-constant member that we inherit from an interface.
3
4interface iface
5{
6 final value x = new value();
7}
8
9final class value
10{
11 Object field = "maude";
12}
13
14public class initfield implements iface
15{
16 public static void main(String[] args)
17 {
18 System.out.println(x.field);
19 }
20}
Note: See TracBrowser for help on using the repository browser.