mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
Fix bytecode tests after new optimizations
- Turn some const conditions into non-const conditions - Make sure inlined const values are used where required (otherwise they are eliminated by POP backward propagation)
This commit is contained in:
@@ -38,8 +38,10 @@ object KoKobject {
|
||||
val JvmStaticString: String? = "123"
|
||||
}
|
||||
|
||||
fun Any?.use() {}
|
||||
|
||||
fun test() {
|
||||
"res1: " +
|
||||
("res1: " +
|
||||
Integer.MIN_VALUE + " " +
|
||||
java.lang.Long.MAX_VALUE + " " +
|
||||
JClass.PrimitiveInt + " " +
|
||||
@@ -52,7 +54,7 @@ fun test() {
|
||||
JClass.PrimitiveFloat + " " +
|
||||
JClass.PrimitiveDouble + " " +
|
||||
JClass.Str + " " +
|
||||
JClass.StrNullable
|
||||
JClass.StrNullable).use()
|
||||
|
||||
"res2: " + JClass.BoxedInt
|
||||
"res3: " + JClass.NonFinal
|
||||
|
||||
Reference in New Issue
Block a user