Files
swift-mirror/test/IRGen/witness_method_after_devirt.swift
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

19 lines
291 B
Swift

// RUN: %target-swift-frontend -emit-ir -verify %s
protocol BaseProtocol {
static func run()
}
protocol DerivedProtocol: BaseProtocol {
}
struct Foo: DerivedProtocol {
static func run() { }
}
@inline(never)
func test() {
let t: DerivedProtocol.Type = Foo.self
t.run()
}