summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/N19990310_3.java
blob: b6dfac28749dfba05925a22fa1e82e118ceff483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*--------------------------------------------------------------------------*/
/* 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+ "]");
		}
	}
}