Files
kotlin/compiler/testData/codegen/bytecodeText/stringOperations/primitiveToString.kt
Ting-Yuan Huang 79fcaae991 Implement constant folding in the IR backend for JVM
The newly added pass folds the set of constant functions of the
current backend, plus IrBuiltIns.
2019-03-20 21:02:55 +01:00

16 lines
333 B
Kotlin
Vendored

// 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()
}
/*Check that all "valueOf" are String ones and there is no boxing*/
// 8 valueOf
// 8 INVOKESTATIC java/lang/String.valueOf