Files
swift-mirror/test/SIL/Serialization/sending.sil
Michael Gottesman 112071e57d [sending] Remove transferring.
Out of an abundance of caution, we:

1. Left in parsing support for transferring but internally made it rely on the
internals of sending.

2. Added a warning to tell people that transferring was going to
be removed very soon.

Now that we have given people some time, remove support for parsing
transferring.

rdar://130253724
2024-06-21 16:03:21 -07:00

22 lines
1.0 KiB
Plaintext

// First parse this and then emit a *.sib. Then read in the *.sib, then recreate
// RUN: %empty-directory(%t)
// RUN: %target-sil-opt -strict-concurrency=complete %s -emit-sib -o %t/tmp.sib -module-name basic2
// RUN: %target-sil-opt -strict-concurrency=complete %t/tmp.sib -o %t/tmp.2.sib -module-name basic2
// RUN: %target-sil-opt -strict-concurrency=complete %t/tmp.2.sib -module-name basic2 -emit-sorted-sil | %FileCheck %s
sil_stage raw
// CHECK-LABEL: func sendingValueDefault<T>(_ t: sending T)
func sendingValueDefault<T>(_ t: sending T)
// CHECK-LABEL: func sendingValue__shared<T>(_ t: __shared sending T)
func sendingValue__shared<T>(_ t: __shared sending T)
// CHECK-LABEL: func sendingValueConsuming<T>(_ t: consuming sending T)
func sendingValueConsuming<T>(_ t: consuming sending T)
// CHECK-LABEL: sil [ossa] @$test : $@convention(thin) <τ_0_0> (@sil_sending @in_guaranteed τ_0_0) -> () {
sil [ossa] @$test : $@convention(thin) <τ_0_0> (@sil_sending @in_guaranteed τ_0_0) -> () {
bb0(%0 : $*τ_0_0):
%9999 = tuple ()
return %9999 : $()
}