llvm-project/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array
Eric Fiselier 107d6d6845 Use DoNotOptimize to prevent new/delete elision.
The new/delete tests, in particular those which test replacement
functions, often fail when the optimizer is enabled because the
calls to new/delete may be optimized away, regardless of their side-effects.

This patch converts the tests to use DoNotOptimize in order to prevent
the elision.

llvm-svn: 328245
2018-03-22 21:28:09 +00:00
..
delete_align_val_t_replace.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
new_align_val_t.pass.cpp [test] Alignment must be > __STDCPP_DEFAULT_NEW_ALIGNMENT__ to call aligned new 2017-11-15 19:14:45 +00:00
new_align_val_t_nothrow.pass.cpp [test] Alignment must be > __STDCPP_DEFAULT_NEW_ALIGNMENT__ to call aligned new 2017-11-15 19:14:45 +00:00
new_align_val_t_nothrow_replace.pass.cpp [test] Alignment must be > __STDCPP_DEFAULT_NEW_ALIGNMENT__ to call aligned new 2017-11-15 19:14:45 +00:00
new_align_val_t_replace.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
new_array.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
new_array_nothrow.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
new_array_nothrow_replace.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
new_array_replace.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
new_size.fail.cpp Commit tests for changes in revision 319710 2017-12-04 23:04:53 +00:00
new_size_align.fail.cpp Commit tests for changes in revision 319710 2017-12-04 23:04:53 +00:00
new_size_align_nothrow.fail.cpp Commit tests for changes in revision 319710 2017-12-04 23:04:53 +00:00
new_size_nothrow.fail.cpp Commit tests for changes in revision 319710 2017-12-04 23:04:53 +00:00
sized_delete_array11.pass.cpp Fix nodiscard failure tests on compilers w/o -verify. 2018-01-17 22:48:09 +00:00
sized_delete_array14.pass.cpp [libcxx] [test] Change comments to say C++ instead of c++. NFC. 2017-07-29 00:55:35 +00:00
sized_delete_array_calls_unsized_delete_array.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
sized_delete_array_fsizeddeallocation.sh.cpp Add markup for libc++ dylib availability 2017-05-04 17:08:54 +00:00