mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
835 B
Swift
15 lines
835 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-module-interface(%t/Library.swiftinterface) %s -enable-experimental-feature Extern -module-name Library
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -enable-experimental-feature Extern -module-name Library
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -module-name Library
|
|
// RUN: %FileCheck %s < %t/Library.swiftinterface
|
|
|
|
// CHECK: @_extern(c) public func externalCFunc()
|
|
@_extern(c) public func externalCFunc()
|
|
|
|
// CHECK: @_extern(c, "renamedCFunc") public func externalRenamedCFunc()
|
|
@_extern(c, "renamedCFunc") public func externalRenamedCFunc()
|
|
|
|
// CHECK: @_extern(wasm, module: "m", name: "f") public func wasmImportedFunc()
|
|
@_extern(wasm, module: "m", name: "f") public func wasmImportedFunc()
|