[K/N][Tests] Move filecheck and cinterop tests to /native/
^KT-61259
This commit is contained in:
committed by
Space Team
parent
05cbe66ee0
commit
bf0150108d
@@ -0,0 +1,34 @@
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// DISABLE_NATIVE: isAppleTarget=false
|
||||
|
||||
// FREE_CINTEROP_ARGS: -compiler-option -fmodule-map-file=$generatedSourcesDir/cinterop/module_library.modulemap
|
||||
// MODULE: cinterop
|
||||
// FILE: module_library.def
|
||||
language = Objective-C
|
||||
modules = module_library
|
||||
|
||||
// FILE: module_library.modulemap
|
||||
module module_library {
|
||||
umbrella header "module_library_umbrella.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
|
||||
// FILE: module_library_umbrella.h
|
||||
#import <foo.h>
|
||||
|
||||
// FILE: foo.h
|
||||
#define ANSWER 42
|
||||
|
||||
// MODULE: main(cinterop)
|
||||
// FILE: main.kt
|
||||
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
|
||||
import module_library.*
|
||||
|
||||
fun box(): String {
|
||||
val answer = ANSWER
|
||||
if (answer != 42)
|
||||
return "FAIL: $answer"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user