Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unsafeslice: make TestStringAllocs more robust to inlining and DCE
Use the same technique as in the Benchmark functions to prevent the compiler from eliminating the converted value, and thus potentially also the conversion itself (especially in unsafe mode). Tests still pass alll the way back to go1.9.7.
- Loading branch information