Files
swift-mirror/test/IRGen/zombies.swift
Alex Hoppen 1c7e289b96 [Mangling] Adjust subscript mangling to not include "subscript"
Change the mangling of accessors to have a variable or subscript node
as their only child node, while subscript nodes no longer contain a decl
name.
2017-09-10 19:44:07 +02: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_{{.*}}vg = hidden alias void (), void ()* @_swift_dead_method_stub
// CHECK: define internal void @_swift_dead_method_stub()