Retro68/gcc/libjava/testsuite/libjava.lang/N19990310_3.java
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

25 lines
805 B
Java

/*--------------------------------------------------------------------------*/
/* 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+ "]");
}
}
}