summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/associative/map/map.special
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-04-22 00:15:18 +0000
committerEric Fiselier <eric@efcs.ca>2016-04-22 00:15:18 +0000
commitd513ad88d590a29169a4108a9279c9f8708642b2 (patch)
tree1504625f806e2880cadb5d78518b9de60803e081 /libcxx/test/std/containers/associative/map/map.special
parent4c0f6afbabbfc5e937481a1ead77004446ae4811 (diff)
downloadbcm5719-llvm-d513ad88d590a29169a4108a9279c9f8708642b2.tar.gz
bcm5719-llvm-d513ad88d590a29169a4108a9279c9f8708642b2.zip
Complete LWG issue #2016. Allocators must be nothrow swappable
llvm-svn: 267085
Diffstat (limited to 'libcxx/test/std/containers/associative/map/map.special')
-rw-r--r--libcxx/test/std/containers/associative/map/map.special/swap_noexcept.pass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/std/containers/associative/map/map.special/swap_noexcept.pass.cpp b/libcxx/test/std/containers/associative/map/map.special/swap_noexcept.pass.cpp
index f25dff2c86d..63ed926b043 100644
--- a/libcxx/test/std/containers/associative/map/map.special/swap_noexcept.pass.cpp
+++ b/libcxx/test/std/containers/associative/map/map.special/swap_noexcept.pass.cpp
@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03
+
// <map>
// void swap(map& c)
@@ -22,6 +24,7 @@
#include <map>
#include <cassert>
+#include "test_macros.h"
#include "MoveOnly.h"
#include "test_allocator.h"
@@ -93,7 +96,6 @@ struct some_alloc3
int main()
{
-#if __has_feature(cxx_noexcept)
typedef std::pair<const MoveOnly, MoveOnly> V;
{
typedef std::map<MoveOnly, MoveOnly> C;
@@ -145,5 +147,4 @@ int main()
}
#endif
-#endif
}
OpenPOWER on IntegriCloud