Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Don't use non-conforming pointer_traits specialization it tests. | Eric Fiselier | 2016-06-22 | 1 | -1/+3 | |
| | | | | llvm-svn: 273368 | |||||
* | Move remaining _LIBCPP_VERSION tests into test/libcxx | Eric Fiselier | 2016-06-22 | 1 | -20/+0 | |
| | | | | llvm-svn: 273367 | |||||
* | Replace __cplusplus comparisons and dialect __has_feature checks with ↵ | Eric Fiselier | 2016-06-14 | 19 | -29/+61 | |
| | | | | | | | | | 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 | |||||
* | Fix leak in __enable_weak_this(). Thanks to Arthur O'Dwyer for finding it. | Eric Fiselier | 2016-06-02 | 1 | -1/+33 | |
| | | | | llvm-svn: 271487 | |||||
* | Remove enable_shared_from_this test since it leaks the control block and ↵ | Eric Fiselier | 2016-06-02 | 1 | -26/+0 | |
| | | | | | | fails with ASAN llvm-svn: 271459 | |||||
* | Implement P0033R1 - Re-enabling shared_from_this | Eric Fiselier | 2016-06-02 | 1 | -0/+86 | |
| | | | | | | | | | | | | Summary: See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0033r1.html Reviewers: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19254 llvm-svn: 271449 | |||||
* | Remove trailing whitespace in test suite. Approved by Marshall Clow. | Eric Fiselier | 2016-06-01 | 12 | -19/+19 | |
| | | | | llvm-svn: 271435 | |||||
* | Mark LWG issue 2520 as complete | Eric Fiselier | 2016-05-31 | 3 | -0/+16 | |
| | | | | llvm-svn: 271249 | |||||
* | [libcxx] Improve tests to use the UNSUPPORTED lit directive | Asiri Rathnayake | 2016-05-28 | 2 | -4/+2 | |
| | | | | | | | | | | | | | | | | | | | Quite a few libcxx tests seem to follow the format: #if _LIBCPP_STD_VER > X // Do test. #else // Empty test. #endif We should instead use the UNSUPPORTED lit directive to exclude the test on earlier C++ standards. This gives us a more accurate number of test passes for those standards and avoids unnecessary conflicts with other lit directives on the same tests. Reviewers: bcraig, ericwf, mclow.lists Differential revision: http://reviews.llvm.org/D20730 llvm-svn: 271108 | |||||
* | Add a test for uniqueptr having either NULL and nullptr | Marshall Clow | 2016-05-16 | 1 | -0/+6 | |
| | | | | llvm-svn: 269665 | |||||
* | Apply D20014 - fix a missing return in a test. Fixes PR#27720 | Marshall Clow | 2016-05-12 | 1 | -1/+1 | |
| | | | | llvm-svn: 269298 | |||||
* | Change allocator<T>::allocate to throw length_error, not bad_alloc | Eric Fiselier | 2016-05-07 | 1 | -3/+5 | |
| | | | | llvm-svn: 268842 | |||||
* | Void cast runtime-unused variables. Patch from STL@microsoft.com | Eric Fiselier | 2016-05-02 | 1 | -2/+8 | |
| | | | | llvm-svn: 268284 | |||||
* | Add braces, move braces, and rename variables to avoid shadowing. Patch from ↵ | Eric Fiselier | 2016-04-28 | 1 | -2/+2 | |
| | | | | | | STL@microsoft.com llvm-svn: 267844 | |||||
* | Rename a few tests that had typos in their names. No functional change. ↵ | Marshall Clow | 2016-04-23 | 2 | -0/+0 | |
| | | | | | | Thanks to STL for the catch llvm-svn: 267287 | |||||
* | Add is_swappable/is_nothrow_swappable traits | Eric Fiselier | 2016-04-21 | 1 | -0/+25 | |
| | | | | llvm-svn: 267079 | |||||
* | Add 'is_callable' and 'is_nothrow_callable' traits and cleanup INVOKE. | Eric Fiselier | 2016-04-20 | 2 | -3/+3 | |
| | | | | | | | | | | | | The primary purpose of this patch is to add the 'is_callable' traits. Since 'is_nothrow_callable' required making 'INVOKE' conditionally noexcept I also took this oppertunity to implement a constexpr version of INVOKE. This fixes 'std::experimental::apply' which required constexpr 'INVOKE support'. This patch will be followed up with some cleanup. Primarly removing most of "__member_function_traits" since it's no longer used by INVOKE (in C++11 at least). llvm-svn: 266836 | |||||
* | Add tests for LWG issue 2361 | Eric Fiselier | 2016-04-18 | 15 | -8/+262 | |
| | | | | llvm-svn: 266586 | |||||
* | Make std::addressof constexpr in C++17 (Clang only). | Eric Fiselier | 2016-03-17 | 1 | -0/+42 | |
| | | | | llvm-svn: 263688 | |||||
* | Mark exception-throwing test as XFAIL when exceptions are disabled | Marshall Clow | 2016-03-14 | 1 | -0/+1 | |
| | | | | llvm-svn: 263405 | |||||
* | Fix for PR26812: possible overflow issue in std::allocator::allocate | Marshall Clow | 2016-03-03 | 1 | -0/+46 | |
| | | | | llvm-svn: 262610 | |||||
* | No, really - test the constructor | Marshall Clow | 2016-02-25 | 1 | -1/+1 | |
| | | | | llvm-svn: 261875 | |||||
* | Add test to ensure that the converting constructor in N4089 is present and ↵ | Marshall Clow | 2016-02-25 | 1 | -0/+27 | |
| | | | | | | working llvm-svn: 261874 | |||||
* | Implement P0074: Making owner_less more flexible | Marshall Clow | 2015-11-12 | 1 | -0/+40 | |
| | | | | llvm-svn: 252905 | |||||
* | Make it possible to build a no-exceptions variant of libcxx. | Asiri Rathnayake | 2015-11-10 | 12 | -0/+12 | |
| | | | | | | | | | | | | 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 | |||||
* | Remove undefined behavior from some tests. Same pattern as the ↵ | Marshall Clow | 2015-11-02 | 2 | -10/+16 | |
| | | | | | | unitialized_copy tests llvm-svn: 251804 | |||||
* | Remove undefined behavior from some tests. Thanks to Walter Brown for the ↵ | Marshall Clow | 2015-11-02 | 2 | -10/+18 | |
| | | | | | | heads-up. llvm-svn: 251802 | |||||
* | Add a test for LWG#2466: allocator_traits::max_size() default behavior is ↵ | Marshall Clow | 2015-10-25 | 1 | -2/+2 | |
| | | | | | | incorrect llvm-svn: 251252 | |||||
* | Fix LWG#2127: Move-construction with raw_storage_iterator. | Marshall Clow | 2015-10-25 | 1 | -4/+23 | |
| | | | | llvm-svn: 251247 | |||||
* | Fixed a possible overflow in a test of allocator::max_size(). | Marshall Clow | 2015-10-05 | 1 | -2/+2 | |
| | | | | llvm-svn: 249349 | |||||
* | Suppress clang warnings in some tests | Eric Fiselier | 2015-08-30 | 1 | -2/+4 | |
| | | | | llvm-svn: 246399 | |||||
* | Cleanup unique_ptr failure tests and convert them to Clang verify | Eric Fiselier | 2015-08-20 | 8 | -217/+98 | |
| | | | | llvm-svn: 245529 | |||||
* | Add files that got missed in r245512. | Eric Fiselier | 2015-08-19 | 4 | -179/+89 | |
| | | | | llvm-svn: 245513 | |||||
* | More unique_ptr test cleanup. Fixes in <memory> to come later. | Eric Fiselier | 2015-08-19 | 5 | -132/+114 | |
| | | | | llvm-svn: 245512 | |||||
* | Fix failing unique_ptr tests. | Eric Fiselier | 2015-07-31 | 2 | -38/+7 | |
| | | | | | | | | When I was refactoring the unique_ptr.single.ctor tests I added a test deleter, 'NCDeleter', to deleter.h. Other tests that include deleter.h redefine the NCDeleter type causing test failures. llvm-svn: 243733 | |||||
* | Start cleanup of unique_ptr tests. | Eric Fiselier | 2015-07-31 | 28 | -1575/+894 | |
| | | | | | | | | | | | | | | | | One of the last sections of tests that still fail in C++03 are the unique_ptr tests. This patch begins cleaning up the tests and fixing C++03 failures. The main changes of this patch: - The "Deleter" type in "deleter.h" tried to be "move-only" in C++03. However the move simulation no longer works (see "__rv"). "Deleter" is now copy constructible in C++03. However copying "Deleter" will "move" the test value instead of copying it. - Reduce the unique.ptr.single.ctor tests files from ~25 to 4. There is no reason the tests were split through so many files. llvm-svn: 243730 | |||||
* | Fix a handful of tests that fail in C++03 | Eric Fiselier | 2015-07-28 | 1 | -13/+8 | |
| | | | | llvm-svn: 243392 | |||||
* | Make sure that __libcpp_compressed_pair_imp default-constructs its' members, ↵ | Marshall Clow | 2015-07-16 | 1 | -0/+16 | |
| | | | | | | rather than value-initializing them. Fixes PR#24137 llvm-svn: 242377 | |||||
* | Automatically detect and use clang verify in failure tests. | Eric Fiselier | 2015-07-06 | 1 | -1/+0 | |
| | | | | | | | | | Automatically enable clang verify whenever the '-verify-ignore-unexpected' flag is supported. Failure tests are run using verify if they contain one or more "expected-*" diagnostics tags. Otherwise they are run normally. llvm-svn: 241492 | |||||
* | Noticed that std::allocator<const T> was missing the definition for ↵ | Marshall Clow | 2015-07-01 | 2 | -0/+9 | |
| | | | | | | is_always_equal. Fixed this, and added a test for it. llvm-svn: 241190 | |||||
* | Fix PR#18843. Thanks to Howard for the fix | Marshall Clow | 2015-06-19 | 1 | -0/+4 | |
| | | | | llvm-svn: 240136 | |||||
* | Implement the first part of N4258 - allocator_traits<X>::is_always_equal. ↵ | Marshall Clow | 2015-06-02 | 1 | -0/+48 | |
| | | | | | | Also fixes PR#23723 llvm-svn: 238848 | |||||
* | Fix PR#23647 - make_shared<volatile bool> - second try | Marshall Clow | 2015-05-27 | 1 | -3/+3 | |
| | | | | llvm-svn: 238370 | |||||
* | Revert 238354 while I figure out what broke in weak_ptr | Marshall Clow | 2015-05-27 | 1 | -3/+3 | |
| | | | | llvm-svn: 238355 | |||||
* | Fix PR#23647 - make_shared<volatile bool> | Marshall Clow | 2015-05-27 | 1 | -0/+61 | |
| | | | | llvm-svn: 238354 | |||||
* | Implement LWG2433: uninitialized_copy()/etc. should tolerate overloaded ↵ | Marshall Clow | 2015-05-19 | 4 | -0/+94 | |
| | | | | | | operator& llvm-svn: 237699 | |||||
* | Fix for LWG Issue 2415: Inconsistency between unique_ptr and shared_ptr | Marshall Clow | 2015-05-10 | 2 | -2/+14 | |
| | | | | llvm-svn: 236953 | |||||
* | Fix for LWG2454: Add raw_storage_iterator::base() member | Marshall Clow | 2015-05-10 | 1 | -0/+48 | |
| | | | | llvm-svn: 236948 | |||||
* | Use generic feature name for sanitizers that replace new and delete | Eric Fiselier | 2015-03-10 | 5 | -5/+5 | |
| | | | | llvm-svn: 231841 | |||||
* | Get tests running with warnings. Fix warnings in headers and tests | Eric Fiselier | 2015-02-05 | 5 | -1/+7 | |
| | | | | llvm-svn: 228344 |