mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A supplemental hidden frontend option allows advanced users to opt-out of this requirement. Fixes https://github.com/apple/swift/issues/65833 Fixes https://github.com/apple/swift/issues/65832
16 lines
817 B
Swift
16 lines
817 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
|
|
|
|
// Check that we have used something from CxxShim in 'UseModuleAImplOnly'
|
|
// 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 -emit-sil -o - -enable-library-evolution | %FileCheck %s
|
|
// CHECK: __swift_interopStaticCast
|
|
|
|
import UseModuleAImplOnly
|
|
|
|
public func testCallsAPI() {
|
|
testUsesA()
|
|
}
|