URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [err13.java] - Rev 781
Go to most recent revision | Compare with Previous | Blame | View Log
/*--------------------------------------------------------------------------*/ /* File name : err13.java */ /* : */ /* Cause : Conversion from zero to String type is not correct. */ /* : */ /* Message : NG : test */ /*--------------------------------------------------------------------------*/ public class err13 { public static void main(String[] args) { String s = "test"; s += 0; if ( s.equals("test0") ) { System.out.println("OK"); } else { System.out.println("NG : " +s); } } }
Go to most recent revision | Compare with Previous | Blame | View Log