Retro68/gcc/libjava/testsuite/libjava.lang/PR3731.java
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

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");
}
}