summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-05-28 14:41:13 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-05-28 14:41:13 +0000
commit3739fe79e52751e2757804c10b52a8c16d5f2ab7 (patch)
tree472cd31501e1435088661add2189c463beb6da58 /libcxx/test
parentdf1fb13a5cc47f589444dddf568c2912d0deaeb9 (diff)
downloadbcm5719-llvm-3739fe79e52751e2757804c10b52a8c16d5f2ab7.tar.gz
bcm5719-llvm-3739fe79e52751e2757804c10b52a8c16d5f2ab7.zip
noexcept for <memory>. I've added a few extension noexcept to: allocator_traits<A>::deallocate, allocaate<T>::deallocate, return_temporary_buffer, and default_delete<T>::operator()(T*) const. My rationale was: If a std-dicated noexcept function needs to call another std-defined function, that called function must be noexcept. We're all a little new to noexcept, so things like this are to be expected. Also included fix for broken __is_swappable trait pointed out by Marc Glisse, thanks Marc|. And fixed a test case for is_nothrow_destructible. Destructors are now noexcept by default|
llvm-svn: 132261
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_destructible.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_destructible.pass.cpp b/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_destructible.pass.cpp
index dfa1b36cf21..1833e69840d 100644
--- a/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_destructible.pass.cpp
+++ b/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_destructible.pass.cpp
@@ -60,10 +60,10 @@ struct A
int main()
{
test_has_not_nothrow_destructor<void>();
- test_has_not_nothrow_destructor<A>();
test_has_not_nothrow_destructor<Abstract>();
test_has_not_nothrow_destructor<NotEmpty>();
+ test_is_nothrow_destructible<A>();
test_is_nothrow_destructible<int&>();
test_is_nothrow_destructible<Union>();
test_is_nothrow_destructible<Empty>();
OpenPOWER on IntegriCloud