Files
swift-mirror/test/SILGen/objc_imported_init.swift
2017-08-29 19:17:25 -07:00

14 lines
429 B
Swift

// RUN: %target-swift-frontend -verify -emit-silgen -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] @_T0So3FooCABycfC : $@convention(method) (@thick Foo.Type) -> @owned Foo {
func foo() {
_ = Foo()
}