Index: test/std/containers/associative/map/map.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/map/map.cons/default_noexcept.pass.cpp +++ test/std/containers/associative/map/map.cons/default_noexcept.pass.cpp @@ -38,11 +38,11 @@ { typedef std::pair V; { - typedef std::map C; + LIBCPP_ONLY(typedef std::map C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::map, test_allocator> C; + LIBCPP_ONLY(typedef std::map, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/associative/map/map.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/map/map.cons/dtor_noexcept.pass.cpp +++ test/std/containers/associative/map/map.cons/dtor_noexcept.pass.cpp @@ -44,7 +44,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::map> C; + LIBCPP_ONLY(typedef std::map> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/associative/map/map.cons/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/map/map.cons/move_assign_noexcept.pass.cpp +++ test/std/containers/associative/map/map.cons/move_assign_noexcept.pass.cpp @@ -46,7 +46,7 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::map, other_allocator> C; + LIBCPP_ONLY(typedef std::map, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { Index: test/std/containers/associative/map/map.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/map/map.cons/move_noexcept.pass.cpp +++ test/std/containers/associative/map/map.cons/move_noexcept.pass.cpp @@ -34,17 +34,17 @@ int main() { - typedef std::pair V; + LIBCPP_ONLY(typedef std::pair V); { - typedef std::map C; + LIBCPP_ONLY(typedef std::map C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::map, test_allocator> C; + LIBCPP_ONLY(typedef std::map, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::map, other_allocator> C; + LIBCPP_ONLY(typedef std::map, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/associative/map/map.special/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/map/map.special/swap_noexcept.pass.cpp +++ test/std/containers/associative/map/map.special/swap_noexcept.pass.cpp @@ -100,11 +100,11 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::map, test_allocator> C; + LIBCPP_ONLY(typedef std::map, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::map, other_allocator> C; + LIBCPP_ONLY(typedef std::map, other_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { @@ -131,7 +131,7 @@ } { // NOT always equal allocator, nothrow swap for comp - typedef std::map, some_alloc3> C; + LIBCPP_ONLY(typedef std::map, some_alloc3> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } #endif Index: test/std/containers/associative/multimap/multimap.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multimap/multimap.cons/default_noexcept.pass.cpp +++ test/std/containers/associative/multimap/multimap.cons/default_noexcept.pass.cpp @@ -38,11 +38,11 @@ { typedef std::pair V; { - typedef std::multimap C; + LIBCPP_ONLY(typedef std::multimap C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::multimap, test_allocator> C; + LIBCPP_ONLY(typedef std::multimap, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/associative/multimap/multimap.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multimap/multimap.cons/dtor_noexcept.pass.cpp +++ test/std/containers/associative/multimap/multimap.cons/dtor_noexcept.pass.cpp @@ -44,7 +44,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::multimap> C; + LIBCPP_ONLY(typedef std::multimap> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/associative/multimap/multimap.cons/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multimap/multimap.cons/move_assign_noexcept.pass.cpp +++ test/std/containers/associative/multimap/multimap.cons/move_assign_noexcept.pass.cpp @@ -46,7 +46,7 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::multimap, other_allocator> C; + LIBCPP_ONLY(typedef std::multimap, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { Index: test/std/containers/associative/multimap/multimap.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multimap/multimap.cons/move_noexcept.pass.cpp +++ test/std/containers/associative/multimap/multimap.cons/move_noexcept.pass.cpp @@ -34,17 +34,17 @@ int main() { - typedef std::pair V; + LIBCPP_ONLY(typedef std::pair V); { - typedef std::multimap C; + LIBCPP_ONLY(typedef std::multimap C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::multimap, test_allocator> C; + LIBCPP_ONLY(typedef std::multimap, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::multimap, other_allocator> C; + LIBCPP_ONLY(typedef std::multimap, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/associative/multimap/multimap.special/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multimap/multimap.special/swap_noexcept.pass.cpp +++ test/std/containers/associative/multimap/multimap.special/swap_noexcept.pass.cpp @@ -100,11 +100,11 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::multimap, test_allocator> C; + LIBCPP_ONLY(typedef std::multimap, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::multimap, other_allocator> C; + LIBCPP_ONLY(typedef std::multimap, other_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { @@ -131,7 +131,7 @@ } { // NOT always equal allocator, nothrow swap for comp - typedef std::multimap, some_alloc3> C; + LIBCPP_ONLY(typedef std::multimap, some_alloc3> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } #endif Index: test/std/containers/associative/multiset/multiset.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multiset/multiset.cons/default_noexcept.pass.cpp +++ test/std/containers/associative/multiset/multiset.cons/default_noexcept.pass.cpp @@ -37,11 +37,11 @@ int main() { { - typedef std::multiset C; + LIBCPP_ONLY(typedef std::multiset C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::multiset, test_allocator> C; + LIBCPP_ONLY(typedef std::multiset, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/associative/multiset/multiset.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multiset/multiset.cons/dtor_noexcept.pass.cpp +++ test/std/containers/associative/multiset/multiset.cons/dtor_noexcept.pass.cpp @@ -43,7 +43,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::multiset> C; + LIBCPP_ONLY(typedef std::multiset> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/associative/multiset/multiset.cons/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multiset/multiset.cons/move_assign_noexcept.pass.cpp +++ test/std/containers/associative/multiset/multiset.cons/move_assign_noexcept.pass.cpp @@ -45,7 +45,7 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::multiset, other_allocator> C; + LIBCPP_ONLY(typedef std::multiset, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { Index: test/std/containers/associative/multiset/multiset.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multiset/multiset.cons/move_noexcept.pass.cpp +++ test/std/containers/associative/multiset/multiset.cons/move_noexcept.pass.cpp @@ -35,15 +35,15 @@ int main() { { - typedef std::multiset C; + LIBCPP_ONLY(typedef std::multiset C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::multiset, test_allocator> C; + LIBCPP_ONLY(typedef std::multiset, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::multiset, other_allocator> C; + LIBCPP_ONLY(typedef std::multiset, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/associative/multiset/multiset.special/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multiset/multiset.special/swap_noexcept.pass.cpp +++ test/std/containers/associative/multiset/multiset.special/swap_noexcept.pass.cpp @@ -99,11 +99,11 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::multiset, test_allocator> C; + LIBCPP_ONLY(typedef std::multiset, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::multiset, other_allocator> C; + LIBCPP_ONLY(typedef std::multiset, other_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { @@ -130,7 +130,7 @@ } { // NOT always equal allocator, nothrow swap for comp - typedef std::multiset, some_alloc3> C; + LIBCPP_ONLY(typedef std::multiset, some_alloc3> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } #endif Index: test/std/containers/associative/set/set.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/set/set.cons/default_noexcept.pass.cpp +++ test/std/containers/associative/set/set.cons/default_noexcept.pass.cpp @@ -37,11 +37,11 @@ int main() { { - typedef std::set C; + LIBCPP_ONLY(typedef std::set C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::set, test_allocator> C; + LIBCPP_ONLY(typedef std::set, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/associative/set/set.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/set/set.cons/dtor_noexcept.pass.cpp +++ test/std/containers/associative/set/set.cons/dtor_noexcept.pass.cpp @@ -43,7 +43,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::set> C; + LIBCPP_ONLY(typedef std::set> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/associative/set/set.cons/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/set/set.cons/move_assign_noexcept.pass.cpp +++ test/std/containers/associative/set/set.cons/move_assign_noexcept.pass.cpp @@ -45,7 +45,7 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::set, other_allocator> C; + LIBCPP_ONLY(typedef std::set, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { Index: test/std/containers/associative/set/set.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/set/set.cons/move_noexcept.pass.cpp +++ test/std/containers/associative/set/set.cons/move_noexcept.pass.cpp @@ -35,15 +35,15 @@ int main() { { - typedef std::set C; + LIBCPP_ONLY(typedef std::set C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::set, test_allocator> C; + LIBCPP_ONLY(typedef std::set, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::set, other_allocator> C; + LIBCPP_ONLY(typedef std::set, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp +++ test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp @@ -99,11 +99,11 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::set, test_allocator> C; + LIBCPP_ONLY(typedef std::set, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::set, other_allocator> C; + LIBCPP_ONLY(typedef std::set, other_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { @@ -130,7 +130,7 @@ } { // NOT always equal allocator, nothrow swap for comp - typedef std::set, some_alloc3> C; + LIBCPP_ONLY(typedef std::set, some_alloc3> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } #endif Index: test/std/containers/container.adaptors/priority.queue/priqueue.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/container.adaptors/priority.queue/priqueue.cons/default_noexcept.pass.cpp +++ test/std/containers/container.adaptors/priority.queue/priqueue.cons/default_noexcept.pass.cpp @@ -26,7 +26,7 @@ int main() { { - typedef std::priority_queue C; + LIBCPP_ONLY(typedef std::priority_queue C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } } Index: test/std/containers/container.adaptors/queue/queue.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/container.adaptors/queue/queue.cons/default_noexcept.pass.cpp +++ test/std/containers/container.adaptors/queue/queue.cons/default_noexcept.pass.cpp @@ -25,7 +25,7 @@ int main() { { - typedef std::queue C; + LIBCPP_ONLY(typedef std::queue C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } } Index: test/std/containers/container.adaptors/queue/queue.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/container.adaptors/queue/queue.cons/move_noexcept.pass.cpp +++ test/std/containers/container.adaptors/queue/queue.cons/move_noexcept.pass.cpp @@ -25,7 +25,7 @@ int main() { { - typedef std::queue C; + LIBCPP_ONLY(typedef std::queue C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } } Index: test/std/containers/container.adaptors/stack/stack.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/container.adaptors/stack/stack.cons/default_noexcept.pass.cpp +++ test/std/containers/container.adaptors/stack/stack.cons/default_noexcept.pass.cpp @@ -25,7 +25,7 @@ int main() { { - typedef std::stack C; + LIBCPP_ONLY(typedef std::stack C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } } Index: test/std/containers/container.adaptors/stack/stack.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/container.adaptors/stack/stack.cons/move_noexcept.pass.cpp +++ test/std/containers/container.adaptors/stack/stack.cons/move_noexcept.pass.cpp @@ -25,7 +25,7 @@ int main() { { - typedef std::stack C; + LIBCPP_ONLY(typedef std::stack C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } } Index: test/std/containers/sequences/deque/deque.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/deque/deque.cons/default_noexcept.pass.cpp +++ test/std/containers/sequences/deque/deque.cons/default_noexcept.pass.cpp @@ -33,11 +33,11 @@ int main() { { - typedef std::deque C; + LIBCPP_ONLY(typedef std::deque C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::deque> C; + LIBCPP_ONLY(typedef std::deque> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/sequences/deque/deque.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/deque/deque.cons/dtor_noexcept.pass.cpp +++ test/std/containers/sequences/deque/deque.cons/dtor_noexcept.pass.cpp @@ -43,7 +43,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::deque> C; + LIBCPP_ONLY(typedef std::deque> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/sequences/deque/deque.cons/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/deque/deque.cons/move_assign_noexcept.pass.cpp +++ test/std/containers/sequences/deque/deque.cons/move_assign_noexcept.pass.cpp @@ -43,11 +43,11 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::deque> C; + LIBCPP_ONLY(typedef std::deque> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { - typedef std::deque> C; + LIBCPP_ONLY(typedef std::deque> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_move_assignable::value, ""); } } Index: test/std/containers/sequences/deque/deque.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/deque/deque.cons/move_noexcept.pass.cpp +++ test/std/containers/sequences/deque/deque.cons/move_noexcept.pass.cpp @@ -33,15 +33,15 @@ int main() { { - typedef std::deque C; + LIBCPP_ONLY(typedef std::deque C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::deque> C; + LIBCPP_ONLY(typedef std::deque> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::deque> C; + LIBCPP_ONLY(typedef std::deque> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp +++ test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp @@ -60,11 +60,11 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::deque> C; + LIBCPP_ONLY(typedef std::deque> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::deque> C; + LIBCPP_ONLY(typedef std::deque> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { Index: test/std/containers/sequences/forwardlist/forwardlist.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/forwardlist/forwardlist.cons/default_noexcept.pass.cpp +++ test/std/containers/sequences/forwardlist/forwardlist.cons/default_noexcept.pass.cpp @@ -33,11 +33,11 @@ int main() { { - typedef std::forward_list C; + LIBCPP_ONLY(typedef std::forward_list C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::forward_list> C; + LIBCPP_ONLY(typedef std::forward_list> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/sequences/forwardlist/forwardlist.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/forwardlist/forwardlist.cons/dtor_noexcept.pass.cpp +++ test/std/containers/sequences/forwardlist/forwardlist.cons/dtor_noexcept.pass.cpp @@ -43,7 +43,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::forward_list> C; + LIBCPP_ONLY(typedef std::forward_list> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/sequences/forwardlist/forwardlist.cons/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/forwardlist/forwardlist.cons/move_assign_noexcept.pass.cpp +++ test/std/containers/sequences/forwardlist/forwardlist.cons/move_assign_noexcept.pass.cpp @@ -43,11 +43,11 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::forward_list> C; + LIBCPP_ONLY(typedef std::forward_list> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { - typedef std::forward_list> C; + LIBCPP_ONLY(typedef std::forward_list> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_move_assignable::value, ""); } } Index: test/std/containers/sequences/forwardlist/forwardlist.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/forwardlist/forwardlist.cons/move_noexcept.pass.cpp +++ test/std/containers/sequences/forwardlist/forwardlist.cons/move_noexcept.pass.cpp @@ -33,15 +33,15 @@ int main() { { - typedef std::forward_list C; + LIBCPP_ONLY(typedef std::forward_list C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::forward_list> C; + LIBCPP_ONLY(typedef std::forward_list> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::forward_list> C; + LIBCPP_ONLY(typedef std::forward_list> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp +++ test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp @@ -60,11 +60,11 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::forward_list> C; + LIBCPP_ONLY(typedef std::forward_list> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::forward_list> C; + LIBCPP_ONLY(typedef std::forward_list> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { Index: test/std/containers/sequences/list/list.cons/default_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/list/list.cons/default_noexcept.pass.cpp +++ test/std/containers/sequences/list/list.cons/default_noexcept.pass.cpp @@ -33,11 +33,11 @@ int main() { { - typedef std::list C; + LIBCPP_ONLY(typedef std::list C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::list> C; + LIBCPP_ONLY(typedef std::list> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/sequences/list/list.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/list/list.cons/dtor_noexcept.pass.cpp +++ test/std/containers/sequences/list/list.cons/dtor_noexcept.pass.cpp @@ -43,7 +43,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::list> C; + LIBCPP_ONLY(typedef std::list> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/sequences/list/list.cons/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/list/list.cons/move_assign_noexcept.pass.cpp +++ test/std/containers/sequences/list/list.cons/move_assign_noexcept.pass.cpp @@ -43,11 +43,11 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::list> C; + LIBCPP_ONLY(typedef std::list> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { - typedef std::list> C; + LIBCPP_ONLY(typedef std::list> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_move_assignable::value, ""); } } Index: test/std/containers/sequences/list/list.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/list/list.cons/move_noexcept.pass.cpp +++ test/std/containers/sequences/list/list.cons/move_noexcept.pass.cpp @@ -33,15 +33,15 @@ int main() { { - typedef std::list C; + LIBCPP_ONLY(typedef std::list C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::list> C; + LIBCPP_ONLY(typedef std::list> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::list> C; + LIBCPP_ONLY(typedef std::list> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/sequences/list/list.special/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/list/list.special/swap_noexcept.pass.cpp +++ test/std/containers/sequences/list/list.special/swap_noexcept.pass.cpp @@ -60,11 +60,11 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::list> C; + LIBCPP_ONLY(typedef std::list> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::list> C; + LIBCPP_ONLY(typedef std::list> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { Index: test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp +++ test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp @@ -32,11 +32,11 @@ int main() { { - typedef std::vector C; + LIBCPP_ONLY(typedef std::vector C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/sequences/vector.bool/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/vector.bool/dtor_noexcept.pass.cpp +++ test/std/containers/sequences/vector.bool/dtor_noexcept.pass.cpp @@ -42,7 +42,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/sequences/vector.bool/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/vector.bool/move_assign_noexcept.pass.cpp +++ test/std/containers/sequences/vector.bool/move_assign_noexcept.pass.cpp @@ -60,7 +60,7 @@ int main() { { - typedef std::vector C; + LIBCPP_ONLY(typedef std::vector C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { @@ -68,20 +68,21 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { - typedef std::vector> C; #if TEST_STD_VER > 14 + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT( std::is_nothrow_move_assignable::value, ""); #else + typedef std::vector> C; static_assert(!std::is_nothrow_move_assignable::value, ""); #endif } #if TEST_STD_VER > 14 { // POCMA false, is_always_equal true - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT( std::is_nothrow_move_assignable::value, ""); } { // POCMA false, is_always_equal false Index: test/std/containers/sequences/vector.bool/move_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/vector.bool/move_noexcept.pass.cpp +++ test/std/containers/sequences/vector.bool/move_noexcept.pass.cpp @@ -32,23 +32,24 @@ int main() { { - typedef std::vector C; + LIBCPP_ONLY(typedef std::vector C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::vector> C; // In C++17, move constructors for allocators are not allowed to throw #if TEST_STD_VER > 14 + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, ""); #else + typedef std::vector> C; static_assert(!std::is_nothrow_move_constructible::value, ""); #endif } Index: test/std/containers/sequences/vector.bool/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/vector.bool/swap_noexcept.pass.cpp +++ test/std/containers/sequences/vector.bool/swap_noexcept.pass.cpp @@ -56,29 +56,30 @@ int main() { { - typedef std::vector C; + LIBCPP_ONLY(typedef std::vector C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::vector> C; #if TEST_STD_VER >= 14 // In c++14, if POCS is set, swapping the allocator is required not to throw + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); #else + typedef std::vector> C; static_assert(!noexcept(swap(std::declval(), std::declval())), ""); #endif } #if TEST_STD_VER >= 14 { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); // if the allocators are always equal, then the swap can be noexcept LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } Index: test/std/containers/sequences/vector/vector.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/vector/vector.cons/dtor_noexcept.pass.cpp +++ test/std/containers/sequences/vector/vector.cons/dtor_noexcept.pass.cpp @@ -43,7 +43,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp +++ test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp @@ -61,7 +61,7 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::vector> C; + LIBCPP_ONLY(typedef std::vector> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { Index: test/std/containers/unord/unord.map/unord.map.cnstr/default_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.map/unord.map.cnstr/default_noexcept.pass.cpp +++ test/std/containers/unord/unord.map/unord.map.cnstr/default_noexcept.pass.cpp @@ -47,12 +47,12 @@ int main() { { - typedef std::unordered_map C; + LIBCPP_ONLY(typedef std::unordered_map C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::unordered_map, - std::equal_to, test_allocator>> C; + LIBCPP_ONLY(typedef std::unordered_map, + std::equal_to, test_allocator>> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/unord/unord.map/unord.map.cnstr/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.map/unord.map.cnstr/dtor_noexcept.pass.cpp +++ test/std/containers/unord/unord.map/unord.map.cnstr/dtor_noexcept.pass.cpp @@ -54,12 +54,12 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::unordered_map> C; + LIBCPP_ONLY(typedef std::unordered_map> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } { - typedef std::unordered_map, - some_comp> C; + LIBCPP_ONLY(typedef std::unordered_map, + some_comp> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/unord/unord.map/unord.map.cnstr/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.map/unord.map.cnstr/move_assign_noexcept.pass.cpp +++ test/std/containers/unord/unord.map/unord.map.cnstr/move_assign_noexcept.pass.cpp @@ -55,8 +55,8 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::unordered_map, - std::equal_to, other_allocator>> C; + LIBCPP_ONLY(typedef std::unordered_map, + std::equal_to, other_allocator>> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { Index: test/std/containers/unord/unord.map/unord.map.cnstr/move_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.map/unord.map.cnstr/move_noexcept.pass.cpp +++ test/std/containers/unord/unord.map/unord.map.cnstr/move_noexcept.pass.cpp @@ -43,17 +43,17 @@ int main() { { - typedef std::unordered_map C; + LIBCPP_ONLY(typedef std::unordered_map C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::unordered_map, - std::equal_to, test_allocator>> C; + LIBCPP_ONLY(typedef std::unordered_map, + std::equal_to, test_allocator>> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::unordered_map, - std::equal_to, other_allocator>> C; + LIBCPP_ONLY(typedef std::unordered_map, + std::equal_to, other_allocator>> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/unord/unord.map/unord.map.swap/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.map/unord.map.swap/swap_noexcept.pass.cpp +++ test/std/containers/unord/unord.map/unord.map.swap/swap_noexcept.pass.cpp @@ -126,13 +126,13 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::unordered_map, - std::equal_to, test_allocator> C; + LIBCPP_ONLY(typedef std::unordered_map, + std::equal_to, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::unordered_map, - std::equal_to, other_allocator> C; + LIBCPP_ONLY(typedef std::unordered_map, + std::equal_to, other_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { @@ -180,7 +180,7 @@ } { // NOT always equal allocator, nothrow swap for hash, nothrow swap for comp - typedef std::unordered_map, some_comp2, some_alloc3> C; + LIBCPP_ONLY(typedef std::unordered_map, some_comp2, some_alloc3> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } #endif Index: test/std/containers/unord/unord.multimap/unord.multimap.cnstr/default_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multimap/unord.multimap.cnstr/default_noexcept.pass.cpp +++ test/std/containers/unord/unord.multimap/unord.multimap.cnstr/default_noexcept.pass.cpp @@ -47,12 +47,12 @@ int main() { { - typedef std::unordered_multimap C; + LIBCPP_ONLY(typedef std::unordered_multimap C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::unordered_multimap, - std::equal_to, test_allocator>> C; + LIBCPP_ONLY(typedef std::unordered_multimap, + std::equal_to, test_allocator>> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/unord/unord.multimap/unord.multimap.cnstr/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multimap/unord.multimap.cnstr/dtor_noexcept.pass.cpp +++ test/std/containers/unord/unord.multimap/unord.multimap.cnstr/dtor_noexcept.pass.cpp @@ -54,12 +54,12 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::unordered_multimap> C; + LIBCPP_ONLY(typedef std::unordered_multimap> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } { - typedef std::unordered_multimap, - some_comp> C; + LIBCPP_ONLY(typedef std::unordered_multimap, + some_comp> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_assign_noexcept.pass.cpp +++ test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_assign_noexcept.pass.cpp @@ -55,8 +55,8 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::unordered_multimap, - std::equal_to, other_allocator>> C; + LIBCPP_ONLY(typedef std::unordered_multimap, + std::equal_to, other_allocator>> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { Index: test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_noexcept.pass.cpp +++ test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_noexcept.pass.cpp @@ -43,17 +43,17 @@ int main() { { - typedef std::unordered_multimap C; + LIBCPP_ONLY(typedef std::unordered_multimap C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::unordered_multimap, - std::equal_to, test_allocator>> C; + LIBCPP_ONLY(typedef std::unordered_multimap, + std::equal_to, test_allocator>> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::unordered_multimap, - std::equal_to, other_allocator>> C; + LIBCPP_ONLY(typedef std::unordered_multimap, + std::equal_to, other_allocator>> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/unord/unord.multimap/unord.multimap.swap/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multimap/unord.multimap.swap/swap_noexcept.pass.cpp +++ test/std/containers/unord/unord.multimap/unord.multimap.swap/swap_noexcept.pass.cpp @@ -125,13 +125,13 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::unordered_multimap, - std::equal_to, test_allocator> C; + LIBCPP_ONLY(typedef std::unordered_multimap, + std::equal_to, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::unordered_multimap, - std::equal_to, other_allocator> C; + LIBCPP_ONLY(typedef std::unordered_multimap, + std::equal_to, other_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { @@ -178,7 +178,7 @@ static_assert( noexcept(swap(std::declval(), std::declval())), ""); } { // NOT always equal allocator, nothrow swap for hash, nothrow swap for comp - typedef std::unordered_multimap, some_comp2, some_alloc3> C; + LIBCPP_ONLY(typedef std::unordered_multimap, some_comp2, some_alloc3> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } #endif Index: test/std/containers/unord/unord.multiset/unord.multiset.cnstr/default_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multiset/unord.multiset.cnstr/default_noexcept.pass.cpp +++ test/std/containers/unord/unord.multiset/unord.multiset.cnstr/default_noexcept.pass.cpp @@ -47,12 +47,12 @@ int main() { { - typedef std::unordered_multiset C; + LIBCPP_ONLY(typedef std::unordered_multiset C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::unordered_multiset, - std::equal_to, test_allocator> C; + LIBCPP_ONLY(typedef std::unordered_multiset, + std::equal_to, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/unord/unord.multiset/unord.multiset.cnstr/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multiset/unord.multiset.cnstr/dtor_noexcept.pass.cpp +++ test/std/containers/unord/unord.multiset/unord.multiset.cnstr/dtor_noexcept.pass.cpp @@ -54,12 +54,12 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::unordered_multiset> C; + LIBCPP_ONLY(typedef std::unordered_multiset> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } { - typedef std::unordered_multiset, - some_comp> C; + LIBCPP_ONLY(typedef std::unordered_multiset, + some_comp> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_assign_noexcept.pass.cpp +++ test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_assign_noexcept.pass.cpp @@ -55,8 +55,8 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::unordered_multiset, - std::equal_to, other_allocator> C; + LIBCPP_ONLY(typedef std::unordered_multiset, + std::equal_to, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { Index: test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_noexcept.pass.cpp +++ test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_noexcept.pass.cpp @@ -43,17 +43,17 @@ int main() { { - typedef std::unordered_multiset C; + LIBCPP_ONLY(typedef std::unordered_multiset C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::unordered_multiset, - std::equal_to, test_allocator> C; + LIBCPP_ONLY(typedef std::unordered_multiset, + std::equal_to, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::unordered_multiset, - std::equal_to, other_allocator> C; + LIBCPP_ONLY(typedef std::unordered_multiset, + std::equal_to, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp +++ test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp @@ -126,13 +126,13 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::unordered_multiset, - std::equal_to, test_allocator> C; + LIBCPP_ONLY(typedef std::unordered_multiset, + std::equal_to, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::unordered_multiset, - std::equal_to, other_allocator> C; + LIBCPP_ONLY(typedef std::unordered_multiset, + std::equal_to, other_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { @@ -180,7 +180,7 @@ } { // NOT always equal allocator, nothrow swap for hash, nothrow swap for comp - typedef std::unordered_multiset, some_comp2, some_alloc3> C; + LIBCPP_ONLY(typedef std::unordered_multiset, some_comp2, some_alloc3> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } #endif Index: test/std/containers/unord/unord.set/unord.set.cnstr/default_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.set/unord.set.cnstr/default_noexcept.pass.cpp +++ test/std/containers/unord/unord.set/unord.set.cnstr/default_noexcept.pass.cpp @@ -47,12 +47,12 @@ int main() { { - typedef std::unordered_set C; + LIBCPP_ONLY(typedef std::unordered_set C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { - typedef std::unordered_set, - std::equal_to, test_allocator> C; + LIBCPP_ONLY(typedef std::unordered_set, + std::equal_to, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible::value, ""); } { Index: test/std/containers/unord/unord.set/unord.set.cnstr/dtor_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.set/unord.set.cnstr/dtor_noexcept.pass.cpp +++ test/std/containers/unord/unord.set/unord.set.cnstr/dtor_noexcept.pass.cpp @@ -54,12 +54,12 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::unordered_set> C; + LIBCPP_ONLY(typedef std::unordered_set> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } { - typedef std::unordered_set, - some_comp> C; + LIBCPP_ONLY(typedef std::unordered_set, + some_comp> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/containers/unord/unord.set/unord.set.cnstr/move_assign_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.set/unord.set.cnstr/move_assign_noexcept.pass.cpp +++ test/std/containers/unord/unord.set/unord.set.cnstr/move_assign_noexcept.pass.cpp @@ -55,8 +55,8 @@ static_assert(!std::is_nothrow_move_assignable::value, ""); } { - typedef std::unordered_set, - std::equal_to, other_allocator> C; + LIBCPP_ONLY(typedef std::unordered_set, + std::equal_to, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_assignable::value, ""); } { Index: test/std/containers/unord/unord.set/unord.set.cnstr/move_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.set/unord.set.cnstr/move_noexcept.pass.cpp +++ test/std/containers/unord/unord.set/unord.set.cnstr/move_noexcept.pass.cpp @@ -43,17 +43,17 @@ int main() { { - typedef std::unordered_set C; + LIBCPP_ONLY(typedef std::unordered_set C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::unordered_set, - std::equal_to, test_allocator> C; + LIBCPP_ONLY(typedef std::unordered_set, + std::equal_to, test_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { - typedef std::unordered_set, - std::equal_to, other_allocator> C; + LIBCPP_ONLY(typedef std::unordered_set, + std::equal_to, other_allocator> C); LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { Index: test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp +++ test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp @@ -126,13 +126,13 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::unordered_set, - std::equal_to, test_allocator> C; + LIBCPP_ONLY(typedef std::unordered_set, + std::equal_to, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::unordered_set, - std::equal_to, other_allocator> C; + LIBCPP_ONLY(typedef std::unordered_set, + std::equal_to, other_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } { @@ -180,7 +180,7 @@ } { // NOT always equal allocator, nothrow swap for hash, nothrow swap for comp - typedef std::unordered_set, some_comp2, some_alloc3> C; + LIBCPP_ONLY(typedef std::unordered_set, some_comp2, some_alloc3> C); LIBCPP_STATIC_ASSERT( noexcept(swap(std::declval(), std::declval())), ""); } #endif Index: test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp =================================================================== --- test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp +++ test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp @@ -43,7 +43,7 @@ static_assert(std::is_nothrow_destructible::value, ""); } { - typedef std::basic_string, some_alloc> C; + LIBCPP_ONLY(typedef std::basic_string, some_alloc> C); LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible::value, ""); } } Index: test/std/strings/basic.string/string.nonmembers/string.special/swap_noexcept.pass.cpp =================================================================== --- test/std/strings/basic.string/string.nonmembers/string.special/swap_noexcept.pass.cpp +++ test/std/strings/basic.string/string.nonmembers/string.special/swap_noexcept.pass.cpp @@ -60,7 +60,7 @@ static_assert(noexcept(swap(std::declval(), std::declval())), ""); } { - typedef std::basic_string, test_allocator> C; + LIBCPP_ONLY(typedef std::basic_string, test_allocator> C); LIBCPP_STATIC_ASSERT(noexcept(swap(std::declval(), std::declval())), ""); } {