blob: cb2edc5ecc0f8c14b2e4a104d34abf41748cd23f [file] [log] [blame]
// RUN: %target-swift-emit-silgen -verify -sdk %S/Inputs -I %S/Inputs -enable-source-import -enable-sil-ownership %s | %FileCheck %s
// REQUIRES: objc_interop
import Foundation
// Ensure we emit allocating constructor thunks for ObjC initializers that
// were inherited.
// CHECK-LABEL: sil shared [serializable] @$SSo3FooCABycfC : $@convention(method) (@thick Foo.Type) -> @owned Foo {
func foo() {
_ = Foo()
}