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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
/*-------------------------------------------------------------------------*/
2
/* File name : err1.java                                                   */
3
/*           :                                                             */
4
/* Cause     : When I make class-type Object.                              */
5
/*           :                                                             */
6
/* Message   : Internal compiler error: program jc1 got                    */
7
/*           :  fatal signal 11                                            */
8
/*-------------------------------------------------------------------------*/
9
 
10
class A {
11
  int counter = 100;
12
}
13
 
14
public class err1 {
15
  public static void main(String[] args) {
16
    A array[] = new A[10]; //err
17
    array[0] = new A();
18
 
19
    if ( array[0].counter == 100 ) {
20
      System.out.println("OK");
21
    } else {
22
      System.out.println("NG:[100]-->[" +array[0].counter+ "]");
23
    }
24
  }
25
}

powered by: WebSVN 2.1.0

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