mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 17:59:30 +08:00
deaabf1413
* libjava.lang/PR3731.java: New file. * libjava.lang/PR3731.out: New file. * libjava.lang/PR3731.xfail: New file. From-SVN: r44151
15 lines
255 B
Java
15 lines
255 B
Java
// 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");
|
|
}
|
|
}
|