Files
swift-mirror/test/IRGen/zombies.swift
Huon Wilson 9a255607ee [IRGen] Visibility of deleted private method vtable stubs should match original.
Previously this would mean something like

    class C {
        private func f() {}
    }

would end up with the symbol for f being completely public (external,
default visibility), even though it only needs to match the internal
class (external, hidden visibility).
2017-04-26 16:57:54 -07:00

13 lines
476 B
Swift

// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -primary-file %s -O -emit-ir | %FileCheck %s
// rdar://24121475
// Ideally, these wouldn't be in the v-table at all; but as long as they
// are, we need to emit symbols for them.
class C {
private var i: Int
init(i: Int) { self.i = i }
}
// CHECK: @_T07zombies1CC1i33_{{.*}}fg = hidden alias void (), void ()* @_swift_dead_method_stub
// CHECK: define internal void @_swift_dead_method_stub()