mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
324 B
Plaintext
15 lines
324 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 [init] %0 : $*@sil_unowned C
|
|
store_unowned %1 to %0 : $*@sil_unowned C
|
|
return undef : $()
|
|
}
|
|
|
|
sil_vtable C {}
|