summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp
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/set/set.special/swap_noexcept.pass.cpp
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/set/set.special/swap_noexcept.pass.cpp')
-rw-r--r--libcxx/test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp b/libcxx/test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp
index 3ec69761275..76528e1572c 100644
--- a/libcxx/test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp
+++ b/libcxx/test/std/containers/associative/set/set.special/swap_noexcept.pass.cpp
@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03
+
// <set>
// void swap(set& c)
@@ -22,6 +24,7 @@
#include <set>
#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::set<MoveOnly> C;
C c1, c2;
@@ -144,5 +146,4 @@ int main()
}
#endif
-#endif
}
OpenPOWER on IntegriCloud