backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
data class A(var x: Int) : Cloneable {
|
||||
public override fun clone(): A = super.clone() as A
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val a = A(42)
|
||||
val b = a.clone()
|
||||
if (a != b) return "Fail equals"
|
||||
if (a === b) return "Fail identity"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user