mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
19 lines
740 B
Swift
19 lines
740 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -typecheck -module-name Functions -clang-header-expose-decls=all-public -emit-clang-header-path %t/functions.h
|
|
// RUN: %FileCheck %s < %t/functions.h
|
|
|
|
// RUN: %check-interop-cxx-header-in-clang(%t/functions.h)
|
|
|
|
public func overloadedFunc(_ x: Int) { }
|
|
public func overloadedFunc(_ y: Float) { }
|
|
|
|
public func overloadedFuncArgLabel(x _: Int) { }
|
|
public func overloadedFuncArgLabel(y _: Float) { }
|
|
|
|
// CHECK: void overloadedFunc(swift::Int x) noexcept
|
|
// CHECK: void overloadedFuncArgLabel(swift::Int _1) noexcept
|
|
|
|
// CHECK: // Unavailable in C++: Swift global function 'overloadedFunc(_:)'.
|
|
|
|
// CHECK: // Unavailable in C++: Swift global function 'overloadedFuncArgLabel(y:)'.
|