re PR java/3731 (gcj should generate class init code for instanceof)

* libjava.lang/PR3731.java: New file.
* libjava.lang/PR3731.out: New file.
* libjava.lang/PR3731.xfail: New file.

From-SVN: r44151
This commit is contained in:
Jeff Sturm 2001-07-19 14:03:08 +00:00 committed by Jeff Sturm
parent bfabbc3c2a
commit deaabf1413
4 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-07-19 Jeff Sturm <jsturm@one-point.com>
* libjava.lang/PR3731.java: New file.
* libjava.lang/PR3731.out: New file.
* libjava.lang/PR3731.xfail: New file.
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/anon_ctor_itf_arg.java: Moved to `libjava.lang.'

View File

@ -0,0 +1,14 @@
// Check whether "instanceof" initializes its class argument.
public class PR3731 {
static B b;
public static void main(String[] args) {
System.out.println(b instanceof B);
}
}
class B {
static {
System.out.println("Initialized");
}
}

View File

@ -0,0 +1,2 @@
Initialized
false

View File

@ -0,0 +1 @@
xfail-output