1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // ~multimap() // implied noexcept;
18 #include "test_allocator.h"
20 #if __has_feature(cxx_noexcept)
26 ~some_comp() noexcept(false);
33 #if __has_feature(cxx_noexcept)
35 typedef std::multimap<MoveOnly, MoveOnly> C;
36 static_assert(std::is_nothrow_destructible<C>::value, "");
39 typedef std::multimap<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C;
40 static_assert(std::is_nothrow_destructible<C>::value, "");
43 typedef std::multimap<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C;
44 static_assert(std::is_nothrow_destructible<C>::value, "");
47 typedef std::multimap<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
48 static_assert(!std::is_nothrow_destructible<C>::value, "");