[K/N] Make a reproducer test for KT-55938

^KT-55938
This commit is contained in:
Pavel Kunyavskiy
2023-01-16 16:58:57 +01:00
committed by Pavel Kunyavskiy
parent e5417e8381
commit fbc39fcab1
7 changed files with 73 additions and 0 deletions
@@ -0,0 +1,10 @@
/*
* 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.
*/
package kt55938lib
import objclib.*
inline fun foo() = ObjCClass.foo()
@@ -0,0 +1,10 @@
/*
* 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 kt55938lib.*
fun main() {
print("foo() call result is ${foo()}")
}
@@ -0,0 +1 @@
foo() call result is 42
@@ -0,0 +1,3 @@
language = Objective-C
headerFilter = **/objclib.h
linkerOpts = -lobjc_kt55938
@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface ObjCClass : NSObject
+ (int)foo;
@end
@@ -0,0 +1,11 @@
#include "objclib.h"
@implementation ObjCClass {
}
+ (int)foo {
return 42;
}
@end