File tree Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend %S/../Inputs/resilient_struct.swift -enable-library-evolution -emit-module -emit-module-path %t/resilient_struct.swiftmodule
3
3
// RUN: %target-swift-frontend %S/../Inputs/resilient_enum.swift -I %t -enable-library-evolution -emit-module -emit-module-path %t/resilient_enum.swiftmodule
4
- // RUN: %target-swift-frontend %s -sil-verify-all -enable-experimental-concurrency - emit-sil -disable-copy-propagation -I %t -o - | %FileCheck %s
4
+ // RUN: %target-swift-frontend %s -sil-verify-all -emit-sil -disable-copy-propagation -I %t -o - | %FileCheck %s
5
5
6
6
// Using -disable-copy-propagation to pattern match against older SIL
7
7
// output. At least until -enable-copy-propagation has been around
@@ -63,20 +63,6 @@ public func testGeneric(c: C) {
63
63
use_closureGeneric { return c. returnInt ( ) }
64
64
}
65
65
66
- // CHECK-LABEL: sil @$s22closure_lifetime_fixup12testAsyncLetyS2SYaF : $@convention(thin) @async (@guaranteed String) -> @owned String {
67
- // CHECK: [[PA:%.*]] = partial_apply [callee_guaranteed] [on_stack]
68
- // CHECK: [[MD:%.*]] = mark_dependence [[PA]]
69
- // CHECK: [[CONV:%.*]] = convert_function [[MD]]
70
- // CHECK: [[BAL:%.*]] = builtin "startAsyncLet"<String>([[CONV]]
71
- // CHECK: builtin "endAsyncLet"([[BAL]] : $Builtin.RawPointer, [[MD]]
72
- // CHECK: } // end sil function '$s22closure_lifetime_fixup12testAsyncLetyS2SYaF'
73
-
74
- public func testAsyncLet( _ n: String ) async -> String {
75
- async let first = n
76
- let result = await first
77
- return result
78
- }
79
-
80
66
public protocol P {
81
67
associatedtype Element
82
68
subscript< U> ( a: ( Element ) -> U , b: ( U ) -> Element ) -> U { get set }
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend %s -sil-verify-all -enable-experimental-concurrency -emit-sil -disable-copy-propagation -I %t -o - | %FileCheck %s
3
+ // REQUIRES: concurrency
4
+
5
+ // CHECK-LABEL: sil @$s34closure_lifetime_fixup_concurrency12testAsyncLetyS2SYaF : $@convention(thin) @async (@guaranteed String) -> @owned String {
6
+ // CHECK: [[PA:%.*]] = partial_apply [callee_guaranteed] [on_stack]
7
+ // CHECK: [[MD:%.*]] = mark_dependence [[PA]]
8
+ // CHECK: [[CONV:%.*]] = convert_function [[MD]]
9
+ // CHECK: [[BAL:%.*]] = builtin "startAsyncLet"<String>([[CONV]]
10
+ // CHECK: builtin "endAsyncLet"([[BAL]] : $Builtin.RawPointer, [[MD]]
11
+ // CHECK: } // end sil function '$s34closure_lifetime_fixup_concurrency12testAsyncLetyS2SYaF'
12
+
13
+ public func testAsyncLet( _ n: String ) async -> String {
14
+ async let first = n
15
+ let result = await first
16
+ return result
17
+ }
You can’t perform that action at this time.
0 commit comments