source: trunk/gcc/libjava/testsuite/libjava.lang/PR3731.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 255 bytes
Line 
1// Check whether "instanceof" initializes its class argument.
2
3public class PR3731 {
4 static B b;
5 public static void main(String[] args) {
6 System.out.println(b instanceof B);
7 }
8}
9
10class B {
11 static {
12 System.out.println("Initialized");
13 }
14}
Note: See TracBrowser for help on using the repository browser.