[K/N][Tests] Polish sharing_with_weak.kt

^KT-61259
This commit is contained in:
Vladimir Sukharev
2024-01-19 18:37:43 +01:00
parent 39e2187d31
commit d2b810c373
@@ -16,8 +16,6 @@ void setObject(NSObject* obj) {
globalObject = obj; globalObject = obj;
} }
// Make sure this function persists, because the test expects to find this function in the stack trace.
__attribute__((noinline))
bool isObjectAlive() { bool isObjectAlive() {
return globalObject != nil; return globalObject != nil;
} }
@@ -30,8 +28,6 @@ import kotlin.test.*
import kotlinx.cinterop.autoreleasepool import kotlinx.cinterop.autoreleasepool
import objclib.* import objclib.*
val sb = StringBuilder()
fun box(): String { fun box(): String {
val success = autoreleasepool { val success = autoreleasepool {
run() run()