JVM: Fix IEEE 754 comparison generation for boxed numbers

This commit is contained in:
Dmitry Petrov
2020-01-14 10:12:50 +03:00
parent 26f435eb90
commit d5ff1047a5
7 changed files with 78 additions and 1 deletions
@@ -0,0 +1,17 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// reason - multifile tests are not supported in JS tests
//FILE: JavaClass.java
import org.jetbrains.annotations.*;
class JavaClass {
public static @NotNull Long get() { return 2364137526064485012L; }
}
//FILE: test.kt
import JavaClass
fun box(): String {
return if (JavaClass.get() > 0) "OK" else "fail"
}