mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
UnsafeMutablePointer.alloc(_:) => UnsafeMutablePointer(allocatingCapacity:)
This commit is contained in:
committed by
Max Moiseev
parent
4e8291fcfb
commit
1f70e25899
@@ -94,7 +94,7 @@ func sliceConcurrentAppendThread(tid: ThreadID) {
|
||||
}
|
||||
|
||||
StringTestSuite.test("SliceConcurrentAppend") {
|
||||
barrierVar = UnsafeMutablePointer.alloc(1)
|
||||
barrierVar = UnsafeMutablePointer(allocatingCapacity: 1)
|
||||
barrierVar.initialize(_stdlib_pthread_barrier_t())
|
||||
var ret = _stdlib_pthread_barrier_init(barrierVar, nil, 2)
|
||||
expectEqual(0, ret)
|
||||
|
||||
Reference in New Issue
Block a user