From 5a83710e371fe68a06e6e3876c6a2c8b820a8976 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 20 Dec 2014 01:40:03 +0000 Subject: Move test into test/std subdirectory. llvm-svn: 224658 --- .../map/map.cons/move_assign_noexcept.pass.cpp | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 libcxx/test/containers/associative/map/map.cons/move_assign_noexcept.pass.cpp (limited to 'libcxx/test/containers/associative/map/map.cons/move_assign_noexcept.pass.cpp') diff --git a/libcxx/test/containers/associative/map/map.cons/move_assign_noexcept.pass.cpp b/libcxx/test/containers/associative/map/map.cons/move_assign_noexcept.pass.cpp deleted file mode 100644 index d12f9a9784f..00000000000 --- a/libcxx/test/containers/associative/map/map.cons/move_assign_noexcept.pass.cpp +++ /dev/null @@ -1,53 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// map& operator=(map&& c) -// noexcept( -// allocator_type::propagate_on_container_move_assignment::value && -// is_nothrow_move_assignable::value && -// is_nothrow_move_assignable::value); - -// This tests a conforming extension - -#include -#include - -#include "../../../MoveOnly.h" -#include "test_allocator.h" - -template -struct some_comp -{ - typedef T value_type; - some_comp& operator=(const some_comp&); -}; - -int main() -{ -#if __has_feature(cxx_noexcept) - { - typedef std::map C; - static_assert(std::is_nothrow_move_assignable::value, ""); - } - { - typedef std::map, test_allocator> C; - static_assert(!std::is_nothrow_move_assignable::value, ""); - } - { - typedef std::map, other_allocator> C; - static_assert(std::is_nothrow_move_assignable::value, ""); - } - { - typedef std::map> C; - static_assert(!std::is_nothrow_move_assignable::value, ""); - } -#endif -} -- cgit v1.2.3