summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/PR3731.java
blob: 8e974ccca8abe6ea414a61141fc440c8c2039a9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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");
  }
}