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/vector | |
| 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/vector')
| -rw-r--r-- | libcxx/test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp index 1d00ff38748..258f22e3ab8 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.special/swap_noexcept.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03 + // <vector> // void swap(vector& c) @@ -22,6 +24,7 @@ #include <vector> #include <cassert> +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -52,7 +55,6 @@ struct some_alloc2 int main() { -#if __has_feature(cxx_noexcept) { typedef std::vector<MoveOnly> C; C c1, c2; @@ -86,6 +88,4 @@ int main() static_assert( noexcept(swap(c1, c2)), ""); } #endif - -#endif } |

