Marshall Clow
dc3eb83d08
Always use the allocator to construct/destruct elements of a deque/vector. Fixes PR#28412. Thanks to Jonathan Wakely for the report.
...
llvm-svn: 275105
2016-07-11 21:38:08 +00:00
Marshall Clow
81fce9729c
Implement LWG#2596: 'vector::data() should use addressof'
...
llvm-svn: 274241
2016-06-30 15:50:55 +00:00
Eric Fiselier
56f23a3f7f
Move remaining _LIBCPP_VERSION tests into test/libcxx
...
llvm-svn: 273367
2016-06-22 02:23:22 +00:00
Eric Fiselier
5d3e09ecc1
Improve portability of vector tests. Patch from STL@microsoft.com
...
llvm-svn: 272745
2016-06-15 01:44:22 +00:00
Eric Fiselier
f2f2a6395f
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
...
This is a huge cleanup that helps make the libc++ test suite more portable.
Patch from STL@microsoft.com . Thanks STL!
llvm-svn: 272716
2016-06-14 21:31:42 +00:00
Eric Fiselier
d04c685168
Remove trailing whitespace in test suite. Approved by Marshall Clow.
...
llvm-svn: 271435
2016-06-01 21:35:39 +00:00
Eric Fiselier
382e91792b
Fix or move various non-standard tests.
...
This patch does the following:
* Remove <__config> includes from some container tests.
* Guards uses of std::launch::any in async tests because it's an extension.
* Move "test/std/extensions" to "test/libcxx/extensions"
* Moves various non-standard tests including those in "sequences/vector",
"std/localization" and "utilities/meta".
llvm-svn: 267981
2016-04-29 04:07:45 +00:00
Eric Fiselier
1f4231f8cf
Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros
...
llvm-svn: 267947
2016-04-28 22:28:23 +00:00
Eric Fiselier
7626f778a5
Remove names of unreferenced parameters. Patch from STL@microsoft.com
...
llvm-svn: 267852
2016-04-28 03:17:56 +00:00
Eric Fiselier
d513ad88d5
Complete LWG issue #2016 . Allocators must be nothrow swappable
...
llvm-svn: 267085
2016-04-22 00:15:18 +00:00
Marshall Clow
1b868e19c3
Add some more tests for the containers type requirements
...
llvm-svn: 263029
2016-03-09 17:19:07 +00:00
Marshall Clow
94f89aeec5
Add static_assert to set/multiset/map/multimap/forward_list/deque that the allocator's value_type match the container's value_type. vector/unordered/list/string already do this. Add tests for all the containers to verify this.
...
llvm-svn: 254119
2015-11-26 01:24:04 +00:00
Asiri Rathnayake
f520c1445f
Make it possible to build a no-exceptions variant of libcxx.
...
Fixes a small omission in libcxx that prevents libcxx being built when
-DLIBCXX_ENABLE_EXCEPTIONS=0 is specified.
This patch adds XFAILS to all those tests that are currently failing
on the new -fno-exceptions library variant. Follow-up patches will
update the tests (progressively) to cope with the new library variant.
Change-Id: I4b801bd8d8e4fe7193df9e55f39f1f393a8ba81a
llvm-svn: 252598
2015-11-10 11:41:22 +00:00
Marshall Clow
1378a5aec3
implement more of N4258 - Cleaning up noexcept in the standard library. Specifically add new noexcept stuff to vector and string's move-assignment operations
...
llvm-svn: 245330
2015-08-18 18:57:00 +00:00
Eric Fiselier
980eda3fc2
Add missing instrumentation in vector::insert - Patch from Anna Zaks
...
This patch was reviewed as D10859. http://reviews.llvm.org/D10859
llvm-svn: 242617
2015-07-18 18:22:12 +00:00
Marshall Clow
71ff7c3f0f
Move bits from N4258. Mark vector's move-constructor unconditionally noexcept in C++1z
...
llvm-svn: 242148
2015-07-14 14:46:32 +00:00
Marshall Clow
e3fbe1433b
Implement the first part of N4258: 'Cleaning up noexcept in the Library'. This patch deals with swapping containers, and implements a more strict noexcept specification (a conforming extension) than the standard mandates.
...
llvm-svn: 242056
2015-07-13 20:04:56 +00:00
Marshall Clow
979550f221
While applying N4258, I forgot about LWG#2455, which modified the modifications. Correct those - h/t: Howard
...
llvm-svn: 239004
2015-06-04 02:05:41 +00:00
Marshall Clow
a8ae392718
More N4258 changes. This time vector's constructors
...
llvm-svn: 238990
2015-06-04 00:10:20 +00:00
Marshall Clow
cd6f7f9d80
Fix broken test I just added
...
llvm-svn: 238234
2015-05-26 19:17:09 +00:00
Marshall Clow
c5c29006dc
Add tests to ensure that string/vector/array have contiguous iterators - which they did. Mark N4284 as complete
...
llvm-svn: 238233
2015-05-26 18:57:27 +00:00
Marshall Clow
fd30fb22c2
Fix test that was failing on C++03 b/c it was using initializer lists
...
llvm-svn: 237527
2015-05-16 17:10:49 +00:00
Marshall Clow
cd26846fc5
Remove some debugging printout lines. No functionality change.
...
llvm-svn: 236949
2015-05-10 13:26:57 +00:00
Marshall Clow
4c30259879
Make the new tests better; make sure that we're testing the case where no reallocation has to happen
...
llvm-svn: 233641
2015-03-30 23:26:16 +00:00
Marshall Clow
21471e0906
While testing Erik's code coverage scripts, I found a hole in the test suite - vector::assign where a reallocation was not required had no tests. Add some
...
llvm-svn: 233557
2015-03-30 16:07:11 +00:00
Eric Fiselier
21d7ffa233
[libcxx] Fix __RAII_IncreaseAnnotator for increases >= 1
...
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
2015-03-10 00:25:20 +00:00
Eric Fiselier
764d030840
Move test to use correct suffix
...
llvm-svn: 231704
2015-03-09 21:30:48 +00:00
Marshall Clow
949389c395
We had two identical files named 'MoveOnly.h' in the test suite. Move one to support/, remove the other, and update all the tests that included them. No functionality change.
...
llvm-svn: 227370
2015-01-28 21:22:53 +00:00
Marshall Clow
00f792e19e
Added test for incomplete type support in vector/list/forward_list. References PR#17980
...
llvm-svn: 227131
2015-01-26 20:06:52 +00:00
Marshall Clow
e21582e742
Walter Brown sent a list of tests which needed 'additional includes' to match what was in the standard. Added these includes to the tests. No changes to the library or test results.
...
llvm-svn: 225541
2015-01-09 20:25:52 +00:00
Eric Fiselier
5a83710e37
Move test into test/std subdirectory.
...
llvm-svn: 224658
2014-12-20 01:40:03 +00:00