[K/N] Add a trivial test-case for KT-59167

This commit is contained in:
Sergey Bogolepov
2023-06-29 15:18:34 +03:00
committed by Space Team
parent 0ceadc5933
commit aee9b7aae3
3 changed files with 28 additions and 0 deletions
@@ -4133,6 +4133,9 @@ if (PlatformInfo.isAppleTarget(project)) {
it.defFile 'interop/objc/objCAction/objclib.def'
it.headers "$projectDir/interop/objc/objCAction/objclib.h"
}
createInterop("kt59167") {
it.defFile 'interop/kt59167/kt59167.def'
}
}
createInterop("withSpaces") {
@@ -4941,6 +4944,11 @@ if (PlatformInfo.isAppleTarget(project)) {
}
UtilsKt.dependsOnPlatformLibs(it)
}
interopTest("interop_kt59167") {
source = 'interop/kt59167/main.kt'
interop = 'kt59167'
}
}
tasks.register("KT-50983", KonanDriverTest) {
@@ -0,0 +1,9 @@
language=Objective-C
---
#import <GameController/GCDevice.h>
// We only need to touch the problematic header to trigger the problem,
// so actual code does not matter.
id<GCDevice> dummy() {
return nil;
}
@@ -0,0 +1,11 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
import kotlin.test.*
import kt59167.*
fun main() {
assertNull(dummy())
}