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.
25 lines
637 B
Swift
25 lines
637 B
Swift
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name test
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name test
|
|
// RUN: %FileCheck %s < %t.swiftinterface
|
|
|
|
public class Base {
|
|
public init(x: Int) {}
|
|
}
|
|
|
|
public class Derived: Base {
|
|
public init(z: Int) {
|
|
super.init(x: z)
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: public class Base {
|
|
// CHECK-NEXT: public init(x: Swift::Int)
|
|
// CHECK-NEXT: {{(@objc )?}}deinit
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-LABEL: public class Derived : test::Base {
|
|
// CHECK-NEXT: public init(z: Swift::Int)
|
|
// CHECK-NEXT: {{(@objc )?}}deinit
|
|
// CHECK-NEXT: }
|
|
|