Dead
[official-gcc.git] / gomp-20050608-branch / libjava / testsuite / libjava.lang / err12.java
blob9631b3de6af6345d26681427c3d6754baf3ae48e
1 /*--------------------------------------------------------------------------*/
2 /* File name : err12.java */
3 /* : */
4 /* Cause : Cast negative floating point to char makes error */
5 /* : */
6 /* Message : Internal compiler error in functi on convert_move */
7 /*--------------------------------------------------------------------------*/
9 public class err12 {
10 public static void main(String[] args){
11 char x1, x2;
13 float y = -10000f;
15 x1 = (char)y; // err
16 x2 = (char)-10000f; // ok
18 if ( x1 == x2 ) {
19 System.out.println("OK");
20 } else {
21 System.out.println("NG");
22 System.out.println("x1:[65520]-->[" +(x1-0)+"]");
23 System.out.println("x2:[65520]-->[" +(x2-0)+"]");