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:
parent
bfabbc3c2a
commit
deaabf1413
@ -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.'
|
||||
|
14
libjava/testsuite/libjava.lang/PR3731.java
Normal file
14
libjava/testsuite/libjava.lang/PR3731.java
Normal 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");
|
||||
}
|
||||
}
|
2
libjava/testsuite/libjava.lang/PR3731.out
Normal file
2
libjava/testsuite/libjava.lang/PR3731.out
Normal file
@ -0,0 +1,2 @@
|
||||
Initialized
|
||||
false
|
1
libjava/testsuite/libjava.lang/PR3731.xfail
Normal file
1
libjava/testsuite/libjava.lang/PR3731.xfail
Normal file
@ -0,0 +1 @@
|
||||
xfail-output
|
Loading…
x
Reference in New Issue
Block a user