[Backend] Reorganize version 1.0 codegen tests
- Extract all backend codegen tests that specifically target behaviour in to-be-deprecated functionality from language versions < 1.3" - Remove those tests from the JVM IR test suite.
This commit is contained in:
committed by
Alexander Udalov
parent
38ea5a85a3
commit
8af3b3e51e
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
// !API_VERSION: 1.0
|
||||
|
||||
fun box(): String {
|
||||
val nullValue: Any? = null
|
||||
val nullDouble: Double? = null
|
||||
val minusZero: Any = -0.0
|
||||
if (nullValue is Double?) {
|
||||
when (nullValue) {
|
||||
-0.0 -> {
|
||||
return "fail 1"
|
||||
}
|
||||
nullDouble -> {}
|
||||
else -> return "fail 2"
|
||||
}
|
||||
|
||||
if (minusZero is Double) {
|
||||
when (nullValue) {
|
||||
minusZero -> {
|
||||
return "fail 3"
|
||||
}
|
||||
nullDouble -> {
|
||||
}
|
||||
else -> return "fail 4"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 4 areEqual \(Ljava/lang/Object;Ljava/lang/Object;\)Z
|
||||
// 4 areEqual
|
||||
Reference in New Issue
Block a user