Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add tests to make sure that is_constructible<cv-void> is false. We already ↵ | Marshall Clow | 2016-10-03 | 1 | -0/+3 | |
| | | | | | | checked 'unqualified void'. This was brought up by LWG#2738 llvm-svn: 283161 | |||||
* | Remove all instances of _LIBCPP_HAS_NO_RVALUE_REFERENCES from test/std/utilities | Eric Fiselier | 2016-10-01 | 9 | -26/+16 | |
| | | | | llvm-svn: 283032 | |||||
* | Make std::is_assignable tolerate references to incomplete types. | Eric Fiselier | 2016-07-25 | 1 | -2/+5 | |
| | | | | llvm-svn: 276599 | |||||
* | Work around MSVC's non-standard ABI for enums. Patch from STL@microsoft.com | Eric Fiselier | 2016-07-25 | 3 | -5/+22 | |
| | | | | llvm-svn: 276589 | |||||
* | Unbreak traits tests by handling differences between version macros in ↵ | Eric Fiselier | 2016-07-20 | 2 | -2/+4 | |
| | | | | | | clang/apple-clang. llvm-svn: 276200 | |||||
* | Unbreak is_constructible tests for Clang <= 3.7. | Eric Fiselier | 2016-07-20 | 2 | -1/+25 | |
| | | | | | | | There is a bug in Clang's __is_constructible builtin that causes it to return true for function types; ex [T = void()]. llvm-svn: 276092 | |||||
* | Reimplement is_constructible fallback implementation. Fixes PR21574. | Eric Fiselier | 2016-07-20 | 2 | -7/+60 | |
| | | | | | | | The previous implementation relied highly on specializations to handle special cases. This new implementation lets the compiler do the work when possible. llvm-svn: 276084 | |||||
* | Add more tests for LWG#2582. No code changes needed, just tests. | Marshall Clow | 2016-07-12 | 25 | -19/+47 | |
| | | | | llvm-svn: 275211 | |||||
* | Add tests for the meta.unary.props that do not require a complete type. This ↵ | Marshall Clow | 2016-07-12 | 4 | -0/+14 | |
| | | | | | | is part of LWG#2582 llvm-svn: 275184 | |||||
* | Allow is_swappable to SFINAE on deleted/ambiguous swap functions | Eric Fiselier | 2016-07-11 | 1 | -0/+21 | |
| | | | | llvm-svn: 275094 | |||||
* | Fix typo in #ifdef; leave tests commented out b/c gcc 4.8 harks on them. | Marshall Clow | 2016-07-08 | 1 | -2/+2 | |
| | | | | llvm-svn: 274882 | |||||
* | Revert r274605 due to bot failure: ↵ | Manman Ren | 2016-07-06 | 1 | -7/+7 | |
| | | | | | | http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-expensive/244/ llvm-svn: 274651 | |||||
* | Fix typo in #ifdef, and re-enable tests now that the green-dragon bots are ↵ | Marshall Clow | 2016-07-06 | 1 | -7/+7 | |
| | | | | | | no more llvm-svn: 274605 | |||||
* | Fix use of terse static assert. Patch from STL@microsoft.com | Eric Fiselier | 2016-06-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 274206 | |||||
* | Move remaining _LIBCPP_VERSION tests into test/libcxx | Eric Fiselier | 2016-06-22 | 1 | -20/+0 | |
| | | | | llvm-svn: 273367 | |||||
* | Move typoed dir meta.hel to meta.help | Eric Fiselier | 2016-06-22 | 2 | -0/+0 | |
| | | | | llvm-svn: 273362 | |||||
* | Fix comment typos, strip trailing whitespace. Patch from STL@microsoft.com | Eric Fiselier | 2016-06-22 | 3 | -3/+3 | |
| | | | | llvm-svn: 273357 | |||||
* | Avoid huge main() functions and huge arrays. Patch from STL@microsoft.com | Eric Fiselier | 2016-06-22 | 1 | -3/+3 | |
| | | | | llvm-svn: 273354 | |||||
* | Don't use C++17 terse static assert. Patch from STL@microsoft.com | Eric Fiselier | 2016-06-22 | 6 | -86/+86 | |
| | | | | llvm-svn: 273353 | |||||
* | Replace __cplusplus comparisons and dialect __has_feature checks with ↵ | Eric Fiselier | 2016-06-14 | 9 | -10/+16 | |
| | | | | | | | | | 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 warnings in tests. | Eric Fiselier | 2016-06-14 | 4 | -2/+18 | |
| | | | | llvm-svn: 272629 | |||||
* | Remove trailing whitespace in test suite. Approved by Marshall Clow. | Eric Fiselier | 2016-06-01 | 20 | -33/+33 | |
| | | | | llvm-svn: 271435 | |||||
* | [libcxx] Improve tests to use the UNSUPPORTED lit directive | Asiri Rathnayake | 2016-05-28 | 2 | -9/+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 | |||||
* | Fix PR27538. Remove __is_convertible specializations for array and function ↵ | Eric Fiselier | 2016-05-03 | 1 | -2/+46 | |
| | | | | | | | | | | | | | types. This patch fixes a bunch of bugs in the fallback implementation of is_convertible, which is used by GCC. Removing the "__is_convertible" specializations for array/function types we fallback on the SFINAE test, which is more correct. See https://llvm.org/bugs/show_bug.cgi?id=27538 llvm-svn: 268359 | |||||
* | Fix or move various non-standard tests. | Eric Fiselier | 2016-04-29 | 1 | -71/+0 | |
| | | | | | | | | | | | | 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 | |||||
* | Add proper include for unique_ptr. Patch from STL@microsoft.com | Eric Fiselier | 2016-04-29 | 1 | -0/+1 | |
| | | | | llvm-svn: 267958 | |||||
* | Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros | Eric Fiselier | 2016-04-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 267947 | |||||
* | Provide member function definitions to avoid warnings. Patch from ↵ | Eric Fiselier | 2016-04-28 | 1 | -1/+1 | |
| | | | | | | STL@microsoft.com llvm-svn: 267843 | |||||
* | Add is_swappable/is_nothrow_swappable traits | Eric Fiselier | 2016-04-21 | 5 | -0/+362 | |
| | | | | llvm-svn: 267079 | |||||
* | Add 'is_callable' and 'is_nothrow_callable' traits and cleanup INVOKE. | Eric Fiselier | 2016-04-20 | 4 | -0/+285 | |
| | | | | | | | | | | | | 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 | |||||
* | Implement LWG issue 2219 - support reference_wrapper in INVOKE | Eric Fiselier | 2016-04-18 | 2 | -10/+135 | |
| | | | | llvm-svn: 266590 | |||||
* | Added tests to make sure that the categorization traits work on incomplete types | Marshall Clow | 2016-02-25 | 29 | -15/+127 | |
| | | | | llvm-svn: 261925 | |||||
* | These new tests fail on the green-dragon bots, which use an old Apple compiler. | Marshall Clow | 2016-02-23 | 1 | -8/+10 | |
| | | | | | | | Since they're scheduled to be updated soon, we'll just comment out this test for the moment, and re-commit when the bots are updated. llvm-svn: 261661 | |||||
* | Add tests for LWG#2560. No code changes, just tests | Marshall Clow | 2016-02-23 | 1 | -0/+9 | |
| | | | | llvm-svn: 261653 | |||||
* | Fix PR26103 - Error calling is_convertible with incomplete type. Patch from ↵ | Eric Fiselier | 2016-01-26 | 1 | -0/+8 | |
| | | | | | | Michael Daniels. llvm-svn: 258852 | |||||
* | Implement LWG#2101 'Some transformation types can produce impossible types' ↵ | Marshall Clow | 2016-01-21 | 5 | -13/+114 | |
| | | | | | | Introduced a new (internal) type trait '__is_referenceable' with tests. Use that trait in add_lvalue_reference, add_rvalue_reference and add_pointer. llvm-svn: 258418 | |||||
* | Mark some test XFAIL for GCC 4.9 due to missing is_trivial* traits | Eric Fiselier | 2016-01-20 | 6 | -2/+14 | |
| | | | | llvm-svn: 258287 | |||||
* | Fix various GCC mis-configurations for newer versions. | Eric Fiselier | 2015-12-15 | 1 | -5/+4 | |
| | | | | | | | | | | | | This patch goes through and enables C++11 and C++14 features for newer GCC's. The main changes are: 1. Turn on variable templates. (Uses __cpp_variable_templates) 2. Assert atomic<Tp> is trivially copyable (Uses _GNUC_VER >= 501). 3. Turn on trailing return support for GCC. (Uses _GNUC_VER >= 404) 4. XFAIL void_t test for GCC 5.1 and 5.2. Fixed in GCC 6. llvm-svn: 255585 | |||||
* | K-Ballo pointed out a mistake in the add_lvalue_ref tests I checked in; now ↵ | Marshall Clow | 2015-12-14 | 1 | -7/+7 | |
| | | | | | | more of them are passing. Thanks llvm-svn: 255519 | |||||
* | Add add_lvalue_ref tests for a few function types, with a note why not more | Marshall Clow | 2015-12-14 | 1 | -0/+36 | |
| | | | | llvm-svn: 255513 | |||||
* | Fix bugs in alignment_of_v, etc. Re-enable the newly added tests | Marshall Clow | 2015-11-30 | 3 | -16/+16 | |
| | | | | llvm-svn: 254289 | |||||
* | Temporarily disable new tests while I figure out what's going on | Marshall Clow | 2015-11-30 | 3 | -19/+19 | |
| | | | | llvm-svn: 254288 | |||||
* | Fix bad macros | Marshall Clow | 2015-11-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 254287 | |||||
* | Fix bad macros in tests | Marshall Clow | 2015-11-30 | 3 | -5/+5 | |
| | | | | llvm-svn: 254284 | |||||
* | Implement more of P0006; Type Traits Variable Templates. | Marshall Clow | 2015-11-30 | 6 | -2/+68 | |
| | | | | llvm-svn: 254283 | |||||
* | Implement P0013R1: Logical Operator Type Traits. Make a hidden ↵ | Marshall Clow | 2015-11-16 | 3 | -0/+171 | |
| | | | | | | implementation (__and_, __or_, and __not_) so that we can use them elsewhere in non-C++17 code - for example, in the LFTS llvm-svn: 253215 | |||||
* | Walter pointed out some missing includes in the tests. Fixing the includes ↵ | Marshall Clow | 2015-11-10 | 59 | -31/+85 | |
| | | | | | | uncovered a couple bugs in the _v type traits. Fixed those, too llvm-svn: 252612 | |||||
* | More of P0006R0: type traits variable aliases for C++17. | Marshall Clow | 2015-11-07 | 26 | -5/+234 | |
| | | | | llvm-svn: 252406 | |||||
* | Improve the tests for 'is_literal_type' | Marshall Clow | 2015-11-01 | 1 | -18/+62 | |
| | | | | llvm-svn: 251767 | |||||
* | Implement the first part of P0006R0: Adopt Type Traits Variable Templates ↵ | Marshall Clow | 2015-11-01 | 34 | -0/+2198 | |
| | | | | | | for C++17. Significantly augment the existing tests. llvm-svn: 251766 |