Skip to content

Commit 541f702

Browse files
committed
fix a test
(cherry picked from commit 9504dc9)
1 parent 61f955c commit 541f702

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/SILGen/functions.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ func testNoescape() {
488488
// Despite being a noescape closure, this needs to capture 'a' by-box so it can
489489
// be passed to the capturing closure.closure
490490
// CHECK: closure #1 () -> () in functions.testNoescape() -> ()
491+
// CHECK-NEXT: Isolation: nonisolated
491492
// CHECK-NEXT: sil private [ossa] @$s9functions12testNoescapeyyFyyXEfU_ : $@convention(thin) (@guaranteed { var Int }) -> () {
492493

493494

@@ -508,7 +509,9 @@ func testNoescape2() {
508509
// CHECK-LABEL: sil hidden [ossa] @$s9functions13testNoescape2yyF : $@convention(thin) () -> () {
509510

510511
// CHECK: // closure #1 () -> () in functions.testNoescape2() -> ()
512+
// CHECK-NEXT: Isolation: nonisolated
511513
// CHECK-NEXT: sil private [ossa] @$s9functions13testNoescape2yyFyyXEfU_ : $@convention(thin) (@guaranteed { var Int }) -> () {
512514

513515
// CHECK: // closure #1 () -> () in closure #1 () -> () in functions.testNoescape2() -> ()
516+
// CHECK-NEXT: Isolation: nonisolated
514517
// CHECK-NEXT: sil private [ossa] @$s9functions13testNoescape2yyFyyXEfU_yycfU_ : $@convention(thin) (@guaranteed { var Int }) -> () {

0 commit comments

Comments
 (0)