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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [err1.java] - Rev 765

Compare with Previous | Blame | View Log

/*-------------------------------------------------------------------------*/
/* File name : err1.java                                                   */
/*           :                                                             */
/* Cause     : When I make class-type Object.                              */
/*           :                                                             */
/* Message   : Internal compiler error: program jc1 got                    */
/*           :  fatal signal 11                                            */
/*-------------------------------------------------------------------------*/
 
class A {
  int counter = 100;
}
 
public class err1 {
  public static void main(String[] args) {
    A array[] = new A[10]; //err
    array[0] = new A();
 
    if ( array[0].counter == 100 ) {
      System.out.println("OK");
    } else {
      System.out.println("NG:[100]-->[" +array[0].counter+ "]");
    }
  }
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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