mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
implement SE 184: add allocation methods to Unsafe buffer pointers, drop all parameters from deallocation, adjust namings, and add repeated-value assignment methods
This commit is contained in:
committed by
Andrew Trick
parent
c7d33e70d3
commit
c85880899d
@@ -612,7 +612,7 @@ ArrayTestSuite.test("BridgedToObjC/Verbatim/getObjects") {
|
||||
expectEqual(idValue2, unsafeBitCast(a.object(at: 2) as AnyObject, to: UInt.self))
|
||||
}
|
||||
|
||||
buffer.deallocate(capacity: 3)
|
||||
buffer.deallocate()
|
||||
_fixLifetime(a)
|
||||
|
||||
expectAutoreleasedKeysAndValues(unopt: (0, 3))
|
||||
@@ -886,7 +886,7 @@ ArrayTestSuite.test("BridgedToObjC/Custom/getObjects") {
|
||||
expectEqual(idValue2, unsafeBitCast(a.object(at: 2) as AnyObject, to: UInt.self))
|
||||
}
|
||||
|
||||
buffer.deallocate(capacity: 3)
|
||||
buffer.deallocate()
|
||||
_fixLifetime(a)
|
||||
|
||||
expectEqual(3, TestBridgedValueTy.bridgeOperations)
|
||||
@@ -1152,4 +1152,3 @@ ArrayTestSuite.tearDown {
|
||||
#endif // _runtime(_ObjC)
|
||||
|
||||
runAllTests()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user