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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

/*--------------------------------------------------------------------------*/
/* Name       : N19990310_3                                                 */
/*            :                                                             */
/* Cause      : Evaluation order miss, when make integer array.             */
/*            :                                                             */
/* Message    : NG:[4]-->[1]                                                */
/*--------------------------------------------------------------------------*/
 
public class N19990310_3 {
	public static void main(String[] args) {
 
		int x = 4; 
 
		int ary[][] = new int[x][x=1];
 
		if ( ary.length == 4 ) {
			System.out.println("OK");
		} else {
			System.out.println("NG:[4]-->[" +ary.length+ "]");
		}
	}
}
 
 
 

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.