Skip to content

Commit 462b327

Browse files
committed
Cleanup RUN lines for lifetime inference type checking tests
1 parent 4513e6b commit 462b327

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

test/Sema/lifetime_depend_infer.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
// RUN: %target-swift-frontend %s -emit-sil \
2-
// RUN: -o /dev/null \
3-
// RUN: -verify \
4-
// RUN: -sil-verify-all \
5-
// RUN: -module-name test \
1+
// RUN: %target-typecheck-verify-swift \
62
// RUN: -enable-experimental-feature LifetimeDependence
73

84
// REQUIRES: swift_feature_LifetimeDependence
@@ -312,7 +308,9 @@ struct NonescapableSelfAccessors: ~Escapable {
312308
var ne: NE
313309

314310
@lifetime(immortal)
315-
init() {}
311+
init() {
312+
ne = NE()
313+
}
316314

317315
var neComputed: NE {
318316
get { // expected-error{{cannot infer the lifetime dependence scope on a method with a ~Escapable parameter, specify '@lifetime(borrow self)' or '@lifetime(copy self)'}}

test/Sema/lifetime_depend_noattr.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-sil \
2-
// RUN: -o /dev/null \
3-
// RUN: -verify \
4-
// RUN: -sil-verify-all \
1+
// RUN: %target-typecheck-verify-swift \
52
// RUN: -disable-availability-checking \
6-
// RUN: -module-name test \
73
// RUN: -enable-experimental-feature LifetimeDependence
84

95
// REQUIRES: swift_feature_LifetimeDependence

test/Sema/lifetime_depend_nofeature.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-sil \
2-
// RUN: -o /dev/null \
3-
// RUN: -verify \
4-
// RUN: -sil-verify-all \
5-
// RUN: -disable-availability-checking \
6-
// RUN: -module-name test
1+
// RUN: %target-typecheck-verify-swift \
2+
// RUN: -disable-availability-checking
73

84
// These tests complement lifetime_depend_noattr.swift. If you add a test here, add one there.
95

0 commit comments

Comments
 (0)