[K/N][Tests] Adjust moved codegen tests to new infra

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-12 17:06:31 +01:00
committed by Space Team
parent a5f3d5b737
commit e15068c62f
301 changed files with 2958 additions and 2382 deletions
+8 -8
View File
@@ -3,8 +3,6 @@
* that can be found in the LICENSE file.
*/
package codegen.bridges.test6
import kotlin.test.*
// vtable call + interface call
@@ -26,15 +24,17 @@ open class C : A() {
open class D: C(), Y, Z
@Test fun runTest() {
fun box(): String {
val d = D()
val y: Y = d
val z: Z = d
val c: C = d
val a: A = d
println(d.foo().toString())
println(y.foo().toString())
println(z.foo().toString())
println(c.foo().toString())
println(a.foo().toString())
if (d.foo().toString() != "42") return "FAIL 1"
if (y.foo().toString() != "42") return "FAIL 2"
if (z.foo().toString() != "42") return "FAIL 3"
if (c.foo().toString() != "42") return "FAIL 4"
if (a.foo().toString() != "42") return "FAIL 5"
return "OK"
}