mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-27 06:44:12 +08:00
initfield.java: New file.
* libjava.lang/initfield.java: New file. * libjava.lang/initfield.out: New file. From-SVN: r64184
This commit is contained in:
parent
54098126af
commit
218d1401af
@ -1,3 +1,13 @@
|
||||
2003-03-11 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.lang/initfield.java: New file.
|
||||
* libjava.lang/initfield.out: New file.
|
||||
|
||||
2003-03-08 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.lang/initfield.java: New file.
|
||||
* libjava.lang/initfield.out: New file.
|
||||
|
||||
2003-03-10 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.jacks/jacks.xfail: Updated to reflect reality.
|
||||
|
20
libjava/testsuite/libjava.lang/initfield.java
Normal file
20
libjava/testsuite/libjava.lang/initfield.java
Normal file
@ -0,0 +1,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);
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.lang/initfield.out
Normal file
1
libjava/testsuite/libjava.lang/initfield.out
Normal file
@ -0,0 +1 @@
|
||||
maude
|
Loading…
Reference in New Issue
Block a user