mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The optimized-build behavior of UnsafeBufferPointer bounds/overflow checking cannot be tested. The standard library always compiles with debug checking enabled, so the behavior of the optimized test depends on whether the inlining heuristics decide to inline these methods. To fix this, we need a way to force @_inlineable UnsafeBufferPointer methods to be emitted inside the client code, and thereby subject the stdlib implementation to the test case's compile options.
26 KiB
26 KiB