OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [err13.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
/*--------------------------------------------------------------------------*/
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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.