mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
The newly added pass folds the set of constant functions of the current backend, plus IrBuiltIns.
16 lines
333 B
Kotlin
Vendored
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
|