File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-emit-silgen -module-name accessor_borrow -Xllvm -sil-full-demangle %s | %FileCheck %s
1
+ // RUN: %target-swift-emit-silgen -module-name accessor_borrow \
2
+ // RUN: -enable-experimental-feature LifetimeDependence \
3
+ // RUN: %s | %FileCheck %s
4
+
5
+ // REQUIRES: swift_feature_LifetimeDependence
2
6
3
7
struct NE: ~ Escapable { }
4
8
5
9
struct NEContainer : ~ Copyable {
6
10
// This accessor borrows self. Do not synthesize a getter.
11
+ //
12
+ // Check NEContainer.ne_coroutine.read
13
+ // CHECK-LABEL: sil hidden [ossa] @$s15accessor_borrow11NEContainerV12ne_coroutineAA2NEVvr : $@yield_once @convention(method) (@guaranteed NEContainer) -> @lifetime(borrow 0) @yields @guaranteed NE {
14
+ //
15
+ // Do not synthesize NEContainer.ne_coroutine.getter
16
+ // CHECK-NOT: $s15accessor_borrow11NEContainerV12ne_coroutineAA2NEVvg
7
17
var ne_coroutine : NE {
8
18
_read {
9
- NE ( )
19
+ yield NE ( )
10
20
}
11
21
}
12
22
}
You can’t perform that action at this time.
0 commit comments