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] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
/*--------------------------------------------------------------------------*/
2
/* Name       : N19990310_02                                                */
3
/*            :                                                             */
4
/* Cause      : Array value calculation in for,while,do while loop is not   */
5
/*            : correct                                                     */
6
/*            :                                                             */
7
/* Message    : NG:[3]-->[2]                                                */
8
/*--------------------------------------------------------------------------*/
9
 
10
public class N19990310_02 {
11
        public static void main(String[] args) {
12
                int y[] = {2};
13
                for ( int i = 0; i < 1; i++ ) {
14
                        y[i] += 1;
15
                        if ( y[i] != 3 ) {
16
                                System.out.println("NG:[3]-->[" +y[i]+ "]");
17
                        }
18
                        else
19
                          System.out.println("OK");
20
                }
21
        }
22
}

powered by: WebSVN 2.1.0

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