We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505d8c2 commit d2ad33aCopy full SHA for d2ad33a
test/stdlib/UnsafeRawBufferPointer.swift
@@ -651,6 +651,7 @@ UnsafeRawBufferPointerTestSuite.test("copy.sequence.overflow")
651
652
UnsafeRawBufferPointerTestSuite.test("copy.overlap") {
653
let bytes = UnsafeMutableRawBufferPointer.allocate(byteCount: 4, alignment: MemoryLayout<UInt>.alignment)
654
+ defer { bytes.deallocate() }
655
// Right Overlap
656
bytes[0] = 1
657
bytes[1] = 2
0 commit comments