File tree 3 files changed +28
-0
lines changed
kotlin-native/backend.native/tests 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -4133,6 +4133,9 @@ if (PlatformInfo.isAppleTarget(project)) {
4133
4133
it. defFile ' interop/objc/objCAction/objclib.def'
4134
4134
it. headers " $projectDir /interop/objc/objCAction/objclib.h"
4135
4135
}
4136
+ createInterop(" kt59167" ) {
4137
+ it. defFile ' interop/kt59167/kt59167.def'
4138
+ }
4136
4139
}
4137
4140
4138
4141
createInterop(" withSpaces" ) {
@@ -4941,6 +4944,11 @@ if (PlatformInfo.isAppleTarget(project)) {
4941
4944
}
4942
4945
UtilsKt . dependsOnPlatformLibs(it)
4943
4946
}
4947
+
4948
+ interopTest(" interop_kt59167" ) {
4949
+ source = ' interop/kt59167/main.kt'
4950
+ interop = ' kt59167'
4951
+ }
4944
4952
}
4945
4953
4946
4954
tasks. register(" KT-50983" , KonanDriverTest ) {
Original file line number Diff line number Diff line change
1
+ language=Objective-C
2
+ ---
3
+ #import <GameController/GCDevice.h>
4
+
5
+ // We only need to touch the problematic header to trigger the problem,
6
+ // so actual code does not matter.
7
+ id<GCDevice> dummy() {
8
+ return nil;
9
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
3
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
4
+ */
5
+
6
+ import kotlin.test.*
7
+ import kt59167.*
8
+
9
+ fun main () {
10
+ assertNull(dummy())
11
+ }
You can’t perform that action at this time.
0 commit comments