401f0ac583
"// TARGET_BACKEND: JVM" more clearly says that the test is JVM-specific, rather than DONT_TARGET_EXACT_BACKEND which excludes all other backends.
30 lines
437 B
Kotlin
Vendored
30 lines
437 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// MODULE: lib
|
|
// FILE: JavaClass.java
|
|
|
|
public class JavaClass {
|
|
|
|
public Double minus0(){
|
|
return -0.0;
|
|
}
|
|
|
|
public Double plus0(){
|
|
return 0.0;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: b.kt
|
|
|
|
fun box(): String {
|
|
val jClass = JavaClass()
|
|
|
|
if (jClass.minus0().equals(jClass.plus0())) return "fail 1"
|
|
if (jClass.plus0().equals(jClass.minus0())) return "fail 2"
|
|
|
|
return "OK"
|
|
}
|
|
|