OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [PR3731.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// Check whether "instanceof" initializes its class argument.
2
 
3
public class PR3731 {
4
  static B b;
5
  public static void main(String[] args) {
6
    System.out.println(b instanceof B);
7
  }
8
}
9
 
10
class B {
11
  static {
12
    System.out.println("Initialized");
13
  }
14
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.