Files
swift-mirror/test/IRGen/unowned_store.sil
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

15 lines
334 B
Plaintext

// RUN: %target-swift-frontend -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 {}