Skip to content

Commit 2d63879

Browse files
committed
Make the SILOptimizer/swap_refcnt.swift test more resilient
1 parent ea07472 commit 2d63879

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/SILOptimizer/swap_refcnt.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
// Make sure we can swap two values in an array without retaining anything.
44

5-
//CHECK-LABEL: _TF11swap_refcnt11swapByIndex
6-
//CHECK-NOT: strong_retain
7-
//CHECK-NOT: strong_release
8-
//CHECK: return
5+
// CHECK-LABEL: sil @_TF11swap_refcnt11swapByIndex
6+
// CHECK-NOT: strong_retain
7+
// CHECK-NOT: strong_release
8+
// CHECK: return
99
public func swapByIndex(A: inout [Int8], x : Int, y : Int) {
1010
swap(&A[x],&A[y])
1111
}

0 commit comments

Comments
 (0)