Minor: Fix some test cases

This commit is contained in:
Steven Schäfer
2019-09-24 14:16:13 +02:00
committed by Alexander Udalov
parent 6e9ee2a46c
commit 3659b517bb
3 changed files with 29 additions and 19 deletions

View File

@@ -1,15 +1,16 @@
// IGNORE_BACKEND: JVM_IR
fun main() {
false.toString()
1.toByte().toString()
1.toShort().toString()
1.toString()
1L.toString()
1.0F.toString()
1.0.toString()
'c'.toString()
}
fun boolConst() = false.toString()
fun byteConst() = 1.toByte().toString()
fun shortConst() = 1.toShort().toString()
fun intConst() = 1.toString()
fun longConst() = 1L.toString()
fun floatConst() = 1.0F.toString()
fun doubleConst() = 1.0.toString()
fun charConst() = 'c'.toString()
/*Check that all "valueOf" are String ones and there is no boxing*/
// JVM_TEMPLATES:
// 8 valueOf
// 8 INVOKESTATIC java/lang/String.valueOf
// JVM_IR_TEMPLATES:
// 0 valueOf
// 8 LDC \"