mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Minor: Fix some test cases
This commit is contained in:
committed by
Alexander Udalov
parent
6e9ee2a46c
commit
3659b517bb
@@ -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 \"
|
||||
Reference in New Issue
Block a user