mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-26 03:28:57 +08:00
25 lines
805 B
Java
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+ "]");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|