mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This gives projects using C++ interop compat mode 5.9 access to the new features such as virtual methods and move-only types. rdar://126485814
10 lines
474 B
Swift
10 lines
474 B
Swift
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=swift-5.9 %s | %FileCheck %s
|
|
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=swift-6 %s | %FileCheck %s
|
|
// 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
|