mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The use of a synthesized C++ method allows us to avoid making a copy of self when invoking the base method from Swift
12 lines
433 B
Swift
12 lines
433 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-frontend %S/Inputs/use-module-a-impl-only.swift -I %S/Inputs/ -module-name UseModuleAImplOnly -emit-module -emit-module-path %t/UseModuleAImplOnly.swiftmodule -cxx-interoperability-mode=default -enable-library-evolution
|
|
|
|
// RUN: %target-swift-frontend %s -typecheck -module-name TestMod -I %t -I %S/Inputs
|
|
|
|
import UseModuleAImplOnly
|
|
|
|
public func testCallsAPI() {
|
|
testUsesA()
|
|
}
|