Skip to content

Commit 3b38a25

Browse files
Added REQUIRES: swift_feature_WeakLet
1 parent f10e0a6 commit 3b38a25

File tree

9 files changed

+16
-1
lines changed

9 files changed

+16
-1
lines changed

test/Concurrency/weak_ref_sendability.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// parameters.
77

88
// REQUIRES: concurrency
9+
// REQUIRES: swift_feature_WeakLet
910

1011
final class S: Sendable {
1112
func foo() {}

test/DebugInfo/WeakCapture.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
// RUN: %target-swift-frontend %s -enable-experimental-feature WeakLet -emit-ir -g -o - | %FileCheck %s
3+
4+
// REQUIRES: swift_feature_WeakLet
5+
36
class A {
47
init(handler: (() -> ())) { }
58
}

test/DebugInfo/weak-self-capture.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
// RUN: %target-swift-frontend %s -enable-experimental-feature WeakLet -emit-ir -g -o - | %FileCheck %s
3+
4+
// REQUIRES: swift_feature_WeakLet
5+
36
public class ClosureMaker {
47
var a : Int
58

test/Interpreter/weak.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-run-simple-swift | %FileCheck %s
22
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-feature -Xfrontend WeakLet) | %FileCheck %s --check-prefixes=CHECK,CHECK-WEAK-LET
3+
34
// REQUIRES: executable_test
5+
// REQUIRES: swift_feature_WeakLet
46

57
protocol Protocol : class {
68
func noop()

test/Interpreter/weak_objc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// REQUIRES: executable_test
1010
// REQUIRES: objc_interop
11+
// REQUIRES: swift_feature_WeakLet
1112

1213
import Foundation
1314

test/SILGen/weak.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
21
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -module-name weak -Xllvm -sil-full-demangle %s | %FileCheck %s
32
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -module-name weak -Xllvm -sil-full-demangle %s -enable-experimental-feature WeakLet | %FileCheck %s
43

4+
// REQUIRES: swift_feature_WeakLet
5+
56
class C {
67
func f() -> Int { return 42 }
78
}

test/expr/closure/closures_swift6.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// RUN: %target-typecheck-verify-swift -swift-version 6 -verify-additional-prefix no-weak-let-
77
// RUN: %target-typecheck-verify-swift -swift-version 6 -verify-additional-prefix has-weak-let- -enable-experimental-feature WeakLet
88

9+
// REQUIRES: swift_feature_WeakLet
10+
911
func doStuff(_ fn : @escaping () -> Int) {}
1012
func doVoidStuff(_ fn : @escaping () -> ()) {}
1113
func doVoidStuffNonEscaping(_ fn: () -> ()) {}

test/expr/closure/implicit_weak_capture.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// REQUIRES: concurrency
55
// REQUIRES: executable_test
6+
// REQUIRES: swift_feature_WeakLet
67

78
// rdar://102155748
89
// UNSUPPORTED: back_deployment_runtime

test/stdlib/WeakMirror.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
// REQUIRES: executable_test
2525
// REQUIRES: shell
2626
// REQUIRES: reflection
27+
// REQUIRES: swift_feature_WeakLet
2728

2829
import StdlibUnittest
2930

0 commit comments

Comments
 (0)