mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This allows calling a C++ function with default arguments from Swift without having to explicitly specify the values of all arguments. rdar://103975014
8 lines
272 B
Swift
8 lines
272 B
Swift
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %s | %FileCheck %s
|
|
|
|
import DefaultArguments
|
|
|
|
// Make sure the default argument generator isn't emitted if it isn't used.
|
|
let _ = isZero(0)
|
|
// CHECK-NOT: __cxx__defaultArg_0__Z6isZeroi
|