diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2011-09-16 18:41:29 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2011-09-16 18:41:29 +0000 |
| commit | 0695db06d76088e6482de7284a7efeb2d5ccea86 (patch) | |
| tree | 8f7ece061e170a596baec4b3198aca3b62d2a918 /libcxx/test/containers/sequences/vector | |
| parent | 8aee874bf1202772b25e25489d17c939eb7bbddb (diff) | |
| download | bcm5719-llvm-0695db06d76088e6482de7284a7efeb2d5ccea86.tar.gz bcm5719-llvm-0695db06d76088e6482de7284a7efeb2d5ccea86.zip | |
The vector test suite now passes for no-debug, debug-lite and debug-regular
llvm-svn: 139930
Diffstat (limited to 'libcxx/test/containers/sequences/vector')
| -rw-r--r-- | libcxx/test/containers/sequences/vector/vector.special/swap.pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/test/containers/sequences/vector/vector.special/swap.pass.cpp b/libcxx/test/containers/sequences/vector/vector.special/swap.pass.cpp index 47773c5023a..7cad0f45135 100644 --- a/libcxx/test/containers/sequences/vector/vector.special/swap.pass.cpp +++ b/libcxx/test/containers/sequences/vector/vector.special/swap.pass.cpp @@ -58,6 +58,8 @@ int main() assert(c2.empty()); assert(distance(c2.begin(), c2.end()) == 0); } +#ifndef _LIBCPP_DEBUG_LEVEL +// This test known to result in undefined behavior detected by _LIBCPP_DEBUG_LEVEL >= 1 { int a1[] = {1, 3, 7, 9, 10}; int a2[] = {0, 2, 4, 5, 6, 8, 11}; @@ -70,6 +72,7 @@ int main() assert((c2 == std::vector<int, A>(a1, a1+sizeof(a1)/sizeof(a1[0])))); assert(c2.get_allocator() == A(2)); } +#endif { int a1[] = {1, 3, 7, 9, 10}; int a2[] = {0, 2, 4, 5, 6, 8, 11}; |

