mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-25 00:09:45 +08:00
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");
|
||
|
}
|
||
|
}
|