This patch does 2 main things:
- Enable sized delete if the feature test macro __cpp_sized_deallocation is enabled.
- Rework and cleanup all of the sized delete tests.
Paths
| Differential D9831
[libcxx] Rework sized delete. ClosedPublic Authored by EricWF on May 18 2015, 11:49 AM.
Details Summary This patch does 2 main things:
Diff Detail Event TimelineEricWF updated this object. Comment Actions I fixed the tests against GCC 5.1 which supports both -fsized-deallocation and sized deallocation in C++14. Comment Actions I think that the language specific files could be named sized_delete_array11 and sized_delete_array14 instead of using the ++ in the file names. Other than that (and the inline nit), these look good to me.
This revision is now accepted and ready to land.May 18 2015, 2:55 PM
Revision Contents
Diff 26003 include/new
test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array_c++11.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array_c++14.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array_calls_unsized_delete_array.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array_fsizeddeallocation.sh.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array_nothrow.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array_replace.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete_c++11.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete_c++14.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete_calls_unsized_delete.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete_fsizeddeallocation.sh.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete_nothrow.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete_replace.pass.cpp
|
Humor my OCD, please.
Make these match all the others:
1 == delete_called and 0 == delete_nothrow_called