Skip to content

Commit aee9b7a

Browse files
sbogolepovSpace Team
authored and
Space Team
committed
[K/N] Add a trivial test-case for KT-59167
1 parent 0ceadc5 commit aee9b7a

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

kotlin-native/backend.native/tests/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4133,6 +4133,9 @@ if (PlatformInfo.isAppleTarget(project)) {
41334133
it.defFile 'interop/objc/objCAction/objclib.def'
41344134
it.headers "$projectDir/interop/objc/objCAction/objclib.h"
41354135
}
4136+
createInterop("kt59167") {
4137+
it.defFile 'interop/kt59167/kt59167.def'
4138+
}
41364139
}
41374140

41384141
createInterop("withSpaces") {
@@ -4941,6 +4944,11 @@ if (PlatformInfo.isAppleTarget(project)) {
49414944
}
49424945
UtilsKt.dependsOnPlatformLibs(it)
49434946
}
4947+
4948+
interopTest("interop_kt59167") {
4949+
source = 'interop/kt59167/main.kt'
4950+
interop = 'kt59167'
4951+
}
49444952
}
49454953

49464954
tasks.register("KT-50983", KonanDriverTest) {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

0 commit comments

Comments
 (0)