summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers
Commit message (Collapse)AuthorAgeFilesLines
* Make the new tests better; make sure that we're testing the case where no ↵Marshall Clow2015-03-302-4/+11
| | | | | | reallocation has to happen llvm-svn: 233641
* While testing Erik's code coverage scripts, I found a hole in the test suite ↵Marshall Clow2015-03-302-16/+74
| | | | | | - vector::assign where a reallocation was not required had no tests. Add some llvm-svn: 233557
* [libcxx] Move tuple_size and tuple_element overloads for pair and array out ↵Eric Fiselier2015-03-172-18/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of !defined(_LIBCPP_HAS_NO_VARIADICS) block. Summary: There is no reason to guard `tuple_size`, `tuple_element` and `get<I>(...)` for pair and array inside of `<__tuple>` so that they are only available when we have variadic templates. This requires there be redundant declarations and definitions. It also makes it easy to get things wrong. For example the following code should compile (and does in c++11). ``` #define _LIBCPP_HAS_NO_VARIADICS #include <array> int main() { static_assert((std::tuple_size<std::array<int, 10> volatile>::value == 10), ""); } ``` This patch lifts the non-variadic parts of `tuple_size`, `tuple_types`, and `get<I>(...)` to the top of `<__tuple>` where they don't require variadic templates. This patch also removes `<__tuple_03>` because there is no longer a need for it. Reviewers: danalbert, K-ballo, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D7774 llvm-svn: 232492
* Use generic feature name for sanitizers that replace new and deleteEric Fiselier2015-03-103-3/+3
| | | | llvm-svn: 231841
* [libcxx] Fix __RAII_IncreaseAnnotator for increases >= 1Eric Fiselier2015-03-101-0/+34
| | | | | | | | | | | | | | Summary: Fix suggested by @mclow.lists on D8109. Store the size of the un-poisoned vector upon construction instead of calculating it later. Reviewers: titus, mclow.lists, kcc, EricWF Reviewed By: EricWF Subscribers: mclow.lists, cfe-commits Differential Revision: http://reviews.llvm.org/D8172 llvm-svn: 231729
* Move test to use correct suffixEric Fiselier2015-03-091-0/+0
| | | | llvm-svn: 231704
* Fix an exception-safety bug in <deque>. Reference: PR#22650. Not closing the ↵Marshall Clow2015-03-092-1/+41
| | | | | | bug because there's more work to do here llvm-svn: 231672
* Move the <dynarray> tests out of the std/ hierarchy, since it's not really ↵Marshall Clow2015-03-0412-787/+0
| | | | | | part of the standard any more. llvm-svn: 231311
* Allow declaration of map and multimap iterator with incomplete mapped type. ↵Eric Fiselier2015-03-032-4/+33
| | | | | | Patch from eugenis llvm-svn: 231119
* Fix more issues exposed by -pedantic-errors in c++03 modeEric Fiselier2015-02-1026-26/+26
| | | | llvm-svn: 228711
* Remove use of zero length arrays in tests. Get tests passing with ↵Eric Fiselier2015-02-108-228/+58
| | | | | | -pedantic-errors llvm-svn: 228706
* We had two identical files named 'MoveOnly.h' in the test suite. Move one to ↵Marshall Clow2015-01-28146-195/+145
| | | | | | support/, remove the other, and update all the tests that included them. No functionality change. llvm-svn: 227370
* Fix PR22366. When move-constructing an associative container and explicitly ↵Marshall Clow2015-01-284-0/+189
| | | | | | passing an allocator that compares different, we were not calling the destructor of the elements in the moved-from container. llvm-svn: 227359
* Added test for incomplete type support in vector/list/forward_list. ↵Marshall Clow2015-01-263-0/+6
| | | | | | References PR#17980 llvm-svn: 227131
* Fix PR#22284. Add a new overload to deque::insert to handle forward ↵Marshall Clow2015-01-221-1/+40
| | | | | | iterators. Update tests to exercise this case. llvm-svn: 226847
* Walter Brown sent a list of tests which needed 'additional includes' to ↵Marshall Clow2015-01-094-0/+4
| | | | | | match what was in the standard. Added these includes to the tests. No changes to the library or test results. llvm-svn: 225541
* libc++ implements its' hash objects as deriving from std::unary_function, ↵Marshall Clow2015-01-071-2/+3
| | | | | | and the tests test for that. STL @ MS pointed out that the standard doesn't requie these objects to derive from unary_function, and so the tests should not require that either. Change the tests to check for the embedded typedefs - which ARE required. No change to the library. llvm-svn: 225403
* Move test into test/std subdirectory.Eric Fiselier2014-12-20953-0/+87700
llvm-svn: 224658
OpenPOWER on IntegriCloud