OSDN Git Service

Make the fixinc/Makefile.* files more similar
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / libjava.lang / err13.java
1 /*--------------------------------------------------------------------------*/
2 /* File name  : err13.java                                             */
3 /*            :                                                             */
4 /* Cause      : Conversion from zero to String type is not correct.         */
5 /*            :                                                             */
6 /* Message    : NG : test                                                   */
7 /*--------------------------------------------------------------------------*/
8
9 public class err13 {
10         public static void main(String[] args) {
11                 String s = "test";
12                 s += 0;
13
14                 if ( s.equals("test0") ) {
15                         System.out.println("OK");
16                 } else {
17                         System.out.println("NG : " +s);
18                 }
19         }
20 }
21