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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
/*--------------------------------------------------------------------------*/
2
/* Name       : N19990310_3                                                 */
3
/*            :                                                             */
4
/* Cause      : Evaluation order miss, when make integer array.             */
5
/*            :                                                             */
6
/* Message    : NG:[4]-->[1]                                                */
7
/*--------------------------------------------------------------------------*/
8
 
9
public class N19990310_3 {
10
        public static void main(String[] args) {
11
 
12
                int x = 4;
13
 
14
                int ary[][] = new int[x][x=1];
15
 
16
                if ( ary.length == 4 ) {
17
                        System.out.println("OK");
18
                } else {
19
                        System.out.println("NG:[4]-->[" +ary.length+ "]");
20
                }
21
        }
22
}
23
 
24
 

powered by: WebSVN 2.1.0

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