diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-09-27 23:55:03 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-09-27 23:55:03 +0000 |
commit | 920b56ca88f06dd9e01caf6f99fcb01e53d1d058 (patch) | |
tree | 5e4888c62e46c2ef52fc0373283296904c36ec47 /libcxx/test/containers | |
parent | 30c811246fe1313c9f72e504a342607a741a6602 (diff) | |
download | bcm5719-llvm-920b56ca88f06dd9e01caf6f99fcb01e53d1d058.tar.gz bcm5719-llvm-920b56ca88f06dd9e01caf6f99fcb01e53d1d058.zip |
Another installment on debug mode. This addresses list. However this should be considered a temporary state. The API of the debug database and how vector and list use it, is unsatisfactory at the moment. It is both inefficient and overly verbose. I wanted to get this functionality checked in though. In the next day or so I'll refactor what is there in an attempt to streamline things.
llvm-svn: 140660
Diffstat (limited to 'libcxx/test/containers')
-rw-r--r-- | libcxx/test/containers/sequences/list/list.special/swap.pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/test/containers/sequences/list/list.special/swap.pass.cpp b/libcxx/test/containers/sequences/list/list.special/swap.pass.cpp index 805759fa746..f6f25ba7f93 100644 --- a/libcxx/test/containers/sequences/list/list.special/swap.pass.cpp +++ b/libcxx/test/containers/sequences/list/list.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::list<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}; |