mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
And update tests to use them. This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130. Fixes rdar://169749886.
24 lines
768 B
Swift
24 lines
768 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-frontend -swift-version 5 -parse-as-library -enable-library-evolution -module-name resolve_imports -resolve-imports %s -emit-module-interface-path %t/resolve_imports.swiftinterface
|
|
// RUN: %FileCheck %s < %t/resolve_imports.swiftinterface
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/resolve_imports.swiftinterface)
|
|
|
|
// CHECK: import Swift
|
|
|
|
// CHECK: public func f() -> Swift::Int
|
|
public func f() -> Int {}
|
|
|
|
// Deliberate semantic errors to ensure private and internal declarations don't
|
|
// get type checked.
|
|
private func bad1(_: NotAThing) -> DoesNotExist {}
|
|
|
|
internal typealias Bad1 = NotEvenReal.DefinitelyNot
|
|
|
|
// Destructors
|
|
public class C {}
|
|
|
|
// CHECK: public class C {
|
|
// CHECK: deinit
|
|
// CHECK: }
|