diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-04-22 00:15:18 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-04-22 00:15:18 +0000 |
commit | d513ad88d590a29169a4108a9279c9f8708642b2 (patch) | |
tree | 1504625f806e2880cadb5d78518b9de60803e081 /libcxx/test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp | |
parent | 4c0f6afbabbfc5e937481a1ead77004446ae4811 (diff) | |
download | bcm5719-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/sequences/deque/deque.special/swap_noexcept.pass.cpp')
-rw-r--r-- | libcxx/test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp b/libcxx/test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp index 83bcac8997e..609e66f081b 100644 --- a/libcxx/test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp +++ b/libcxx/test/std/containers/sequences/deque/deque.special/swap_noexcept.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03 + // <deque> // void swap(deque& c) @@ -21,6 +23,7 @@ #include <deque> #include <cassert> +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -51,7 +54,6 @@ struct some_alloc2 int main() { -#if __has_feature(cxx_noexcept) { typedef std::deque<MoveOnly> C; C c1, c2; @@ -86,5 +88,4 @@ int main() } #endif -#endif } |