llvm-project/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single
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.pass.cpp Rename new_handler in tests to avoid conflicts with MSVC symbols. 2017-01-17 00:32:08 +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_nothrow.pass.cpp Rename new_handler in tests to avoid conflicts with MSVC symbols. 2017-01-17 00:32:08 +00:00
new_nothrow_replace.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
new_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_delete11.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
sized_delete14.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
sized_delete_calls_unsized_delete.pass.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00
sized_delete_fsizeddeallocation.sh.cpp Use DoNotOptimize to prevent new/delete elision. 2018-03-22 21:28:09 +00:00