blob: 61cb7ae341e60ca19f55a7ba195015ba1b7b34e4 [file] [log] [blame]
// RUN: %target-swift-frontend -O -emit-ir -primary-file %s | %FileCheck %s
// This is a swift file because the crash doesn't reproduce with SIL.
@inline(never)
func callFoo<T: X>(_ x: T) {
x.foo()
}
public func a(y: Sub) {
callFoo(y)
// specialization of callFoo for Sub:
// CHECK-LABEL: define linkonce_odr hidden swiftcc void @"$S33devirt_witness_method_conformance7callFooyyxAA1XRzlFAA3SubC_Tg5Tf4d_n"() local_unnamed_addr
}
protocol X {
func foo()
}
extension X {
func foo() {}
}
public class Base: X {}
public class Sub: Base {}