From d2b810c373f41e6aeb4c5504ad1611fa4d2bc0c4 Mon Sep 17 00:00:00 2001 From: Vladimir Sukharev Date: Fri, 19 Jan 2024 18:37:43 +0100 Subject: [PATCH] [K/N][Tests] Polish sharing_with_weak.kt ^KT-61259 --- .../testData/codegen/box/cinterop/objc/sharing_with_weak.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt b/compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt index 185c307545b..89ca89eb9d3 100644 --- a/compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt +++ b/compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt @@ -16,8 +16,6 @@ void setObject(NSObject* obj) { globalObject = obj; } -// Make sure this function persists, because the test expects to find this function in the stack trace. -__attribute__((noinline)) bool isObjectAlive() { return globalObject != nil; } @@ -30,8 +28,6 @@ import kotlin.test.* import kotlinx.cinterop.autoreleasepool import objclib.* -val sb = StringBuilder() - fun box(): String { val success = autoreleasepool { run()