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

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-14 20:14:47 +01:00
committed by Space Team
parent 71a834b778
commit 73032213f0
295 changed files with 1362 additions and 1145 deletions
@@ -2,11 +2,12 @@
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package codegen.escapeAnalysis.test9
// TODO: check mentioned debug output of escape analyser
import kotlin.test.*
class H(val x: Int)
// Note: intentional infinite recursion for F(String). Don't try to execute the code.
class F(val s: String) {
var g = F("")
var h = H(0)
@@ -33,4 +34,8 @@ fun foo(a: A, f: F): H {
return f.g.h
}
fun main() = println(foo(A(), F("zzz")).x)
fun box(): String {
// When uncommented, execution of the following line would fall into infinite recursion
// assertEquals(0, foo(A(), F("zzz")).x)
return "OK"
}