blob: aba80dc86f00f67ae23b9ff873e21792f6c77c8f [file] [log] [blame]
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir -verify %s
import Swift
class C {}
sil @foo : $@convention(thin) (@inout @sil_unowned C, @owned C) -> () {
entry(%0 : $*@sil_unowned C, %1 : $C):
store_unowned %1 to [initialization] %0 : $*@sil_unowned C
store_unowned %1 to %0 : $*@sil_unowned C
return undef : $()
}
sil_vtable C {}