mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
It's very, very easy to make a mistake that will cause broken serialized modules. Until that's no longer true, at least tell folks that they are heading into uncharted waters, as we do with `@_implementationOnly` imports.
15 lines
693 B
Swift
15 lines
693 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -internal-import-bridging-header %S/../Inputs/c-bridging-header.h -sdk %clang-importer-sdk %s 2>&1 | %FileCheck -check-prefix NONRESILIENT %s
|
|
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -internal-import-bridging-header %S/../Inputs/c-bridging-header.h -sdk %clang-importer-sdk %s -enable-library-evolution 2>&1 | %FileCheck -check-prefix EVOLUTION %s
|
|
|
|
// NONRESILIENT: warning: using internal bridging headers without library evolution can cause instability
|
|
|
|
// EVOLUTION-NOT: internal bridging head
|
|
|
|
@available(*, deprecated)
|
|
func f() { }
|
|
|
|
func g(){
|
|
f() // make sure we emit something
|
|
}
|