mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
355 B
Swift
16 lines
355 B
Swift
// RUN: %target-swift-frontend -O -primary-file %s %S/Inputs/public_class.swift -parse-as-library -emit-sil | %FileCheck %s
|
|
|
|
private class Derived : Base {
|
|
override func visible() {
|
|
}
|
|
func is_dead() {
|
|
}
|
|
}
|
|
|
|
// CHECK: sil private {{.*}}visible
|
|
// CHECK-NOT: sil {{.*}}is_dead
|
|
|
|
// CHECK-LABEL: sil_vtable
|
|
// CHECK: Base.visible
|
|
// CHECK-NOT: is_dead
|