[libcxx-commits] [libcxx] [libcxx] Improve libcxx tests when using Optimizations. (PR #88897)
Jack Styles via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Apr 26 06:55:33 PDT 2024
================
@@ -51,7 +51,8 @@ int main(int, char**) {
// Test with an overaligned type
{
new_called = delete_called = 0;
- OverAligned* x = DoNotOptimize(new OverAligned[3]);
+ OverAligned* dummy_data_block = new OverAligned[3];
----------------
Stylie777 wrote:
Yes we do - hence the change in these tests to a different variant of the `DoNotOptimize` function.
https://github.com/llvm/llvm-project/pull/88897
More information about the libcxx-commits
mailing list