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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

/*--------------------------------------------------------------------------*/
/* Name       : N19990310_02                                                */
/*            :                                                             */
/* Cause      : Array value calculation in for,while,do while loop is not   */
/*            : correct                                                     */
/*            :                                                             */
/* Message    : NG:[3]-->[2]                                                */
/*--------------------------------------------------------------------------*/
 
public class N19990310_02 {
	public static void main(String[] args) {
		int y[] = {2};
		for ( int i = 0; i < 1; i++ ) {
			y[i] += 1;
			if ( y[i] != 3 ) {
				System.out.println("NG:[3]-->[" +y[i]+ "]");
			}
			else
			  System.out.println("OK");
		}
	}
}
 

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.