summaryrefslogtreecommitdiffstats
path: root/libcxx/test
Commit message (Collapse)AuthorAgeFilesLines
* noexcept for <list>.Howard Hinnant2011-06-035-0/+264
| | | | llvm-svn: 132562
* noexcept for <forward_list>.Howard Hinnant2011-06-036-0/+268
| | | | llvm-svn: 132553
* After sleeping on it I've decided that all special members that can be ↵Howard Hinnant2011-06-032-0/+98
| | | | | | noexcept, should be declared so. The client has the traits to detect and branch on this information, and it is often an important optimization. Give deque() a noexcept. Add test for deque default constructor and deque destructor. llvm-svn: 132549
* Add noexcept tests for deque.Howard Hinnant2011-06-033-0/+162
| | | | llvm-svn: 132523
* noexcept for <memory>. I've added a few extension noexcept to: ↵Howard Hinnant2011-05-281-1/+1
| | | | | | allocator_traits<A>::deallocate, allocaate<T>::deallocate, return_temporary_buffer, and default_delete<T>::operator()(T*) const. My rationale was: If a std-dicated noexcept function needs to call another std-defined function, that called function must be noexcept. We're all a little new to noexcept, so things like this are to be expected. Also included fix for broken __is_swappable trait pointed out by Marc Glisse, thanks Marc|. And fixed a test case for is_nothrow_destructible. Destructors are now noexcept by default| llvm-svn: 132261
* Simplied bind using __invoke. In the process, found and fixed a couple of ↵Howard Hinnant2011-05-192-0/+19
| | | | | | bugs. C++11 only. llvm-svn: 131667
* This commit was accidental. Reverting.Howard Hinnant2011-05-181-2/+2
| | | | llvm-svn: 131514
* A bunch of future tests got invalidated with the latest updates to thread. ↵Howard Hinnant2011-05-1717-47/+47
| | | | | | Fixed the tests. llvm-svn: 131509
* Fix and beef up test bug for move_if_noexceptHoward Hinnant2011-05-171-3/+11
| | | | llvm-svn: 131483
* Clean up a bunch of warnings in the tests, 3 of which actually turned out to ↵Howard Hinnant2011-05-1729-4/+54
| | | | | | be test bugs. llvm-svn: 131479
* Brought call_once variadic call up to current spec, which allows move-only ↵Howard Hinnant2011-05-161-0/+20
| | | | | | functors and move-only arguments, but disallows functors with non-const lvalue reference parameters. llvm-svn: 131414
* Brought thread variadic constructor up to current spec, which allows ↵Howard Hinnant2011-05-161-0/+20
| | | | | | move-only functors and move-only arguments, but disallows functors with non-const lvalue reference parameters. llvm-svn: 131413
* Redesign of result_of to handle reference-qualified member functionsHoward Hinnant2011-05-161-0/+4
| | | | llvm-svn: 131407
* Warning suppression in test.Howard Hinnant2011-05-141-2/+0
| | | | llvm-svn: 131344
* Warning suppression in test.Howard Hinnant2011-05-141-2/+0
| | | | llvm-svn: 131343
* Warning suppression in test.Howard Hinnant2011-05-141-1/+1
| | | | llvm-svn: 131341
* Correction to hexfloat hack.Howard Hinnant2011-05-141-3/+4
| | | | llvm-svn: 131340
* Fix test bug.Howard Hinnant2011-05-141-1/+1
| | | | llvm-svn: 131328
* Suppress some warings in the tests.Howard Hinnant2011-05-141-8/+8
| | | | llvm-svn: 131327
* Suppress some warings in the tests.Howard Hinnant2011-05-131-1/+1
| | | | llvm-svn: 131326
* http://llvm.org/bugs/show_bug.cgi?id=9854. Also created an emulated ↵Howard Hinnant2011-05-137-84/+128
| | | | | | hexfloat literal for use in some of the tests. <sigh> And cleaned up some harmless but irritating warnings in the tests. llvm-svn: 131318
* A much improved type_traits for C++0x. Not yet done: ↵Howard Hinnant2011-05-1317-48/+79
| | | | | | is_trivially_constructible, is_trivially_assignable and underlying_type. llvm-svn: 131291
* Corrected some bugs in both memory and the tests. Preparing for being able ↵Howard Hinnant2011-05-112-5/+5
| | | | | | to turn on support for alias templates. llvm-svn: 131199
* Fix bug in Sseq constraints found by Seth CantrellHoward Hinnant2011-04-112-2/+2
| | | | llvm-svn: 129285
* Corrected tests for http://llvm.org/bugs/show_bug.cgi?id=9351Howard Hinnant2011-04-044-76/+5
| | | | llvm-svn: 128807
* ... And these wonderful tests.Howard Hinnant2011-04-034-0/+96
| | | | llvm-svn: 128797
* <rdar://problem/9073695> std::uncaught_exception() becomes true before ↵Nick Kledzik2011-03-111-1/+10
| | | | | | evaluating the throw-expression rather than after llvm-svn: 127499
* Corrected const-correctness on nullptr type_traits, and beefed up the test ↵Howard Hinnant2011-03-091-0/+15
| | | | | | for nullptr_t. llvm-svn: 127338
* http://llvm.org/bugs/show_bug.cgi?id=9326Howard Hinnant2011-02-251-0/+53
| | | | llvm-svn: 126504
* Update testit to default to clangHoward Hinnant2011-02-141-62/+5
| | | | llvm-svn: 125498
* Bug 9096 - list::iterator not default constructibleHoward Hinnant2011-01-2814-10/+263
| | | | llvm-svn: 124508
* minor corrections to test, and hook is_base_of up to clang intrinsicHoward Hinnant2011-01-282-5/+2
| | | | llvm-svn: 124502
* placeholder testHoward Hinnant2011-01-251-0/+19
| | | | llvm-svn: 124193
* Eliminate the C++0x-only is_convertible testing function that acceptsDouglas Gregor2011-01-251-0/+15
| | | | | | | | | | | | | | | | | | | | | | | a cv-qualifier rvalue reference to the type, e.g., template <class _Tp> char __test(const volatile typename remove_reference<_Tp>::type&&); The use of this function signature rather than the more straightforward one used in C++98/03 mode, e.g., template <class _Tp> char __test(_Tp); is broken in two ways: 1) An rvalue reference cannot bind to lvalues, so is_convertible<X&, X&>::value would be false. This breaks two of the unique_ptr tests on Clang and GCC >= 4.5. Prior GCC's seem to have allowed rvalue references to bind to lvalues, allowing this bug to slip in. 2) By adding cv-qualifiers to the type we're converting to, we get some incorrect "true" results for, e.g., is_convertible<const X&, X&>::value. llvm-svn: 124166
* Teach the Lit configuration to actually use the cxx0x setting whenChandler Carruth2011-01-231-2/+7
| | | | | | | constructing compile flags, and to link against the 'rt' library on Linux for clock_gettime and friends. llvm-svn: 124052
* LWG 1385 [FCD] tuple_cat should be a single variadic signature ↵Howard Hinnant2010-12-111-15/+90
| | | | | | (http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1385). This issue is only in Ready status, meaning it is not official, but probably will be this March in Madrid. It was tentatively accepted in Batavia with the previso that Bill and I didn't have any problems implementing it. This is my part of that agreement. llvm-svn: 121619
* Add CMake build and fix major Linux blockers.Michael J. Spencer2010-12-103-8/+89
| | | | llvm-svn: 121510
* Test adjustment for recent changes in allocator_traitsHoward Hinnant2010-12-101-1/+1
| | | | llvm-svn: 121503
* This got accidentally removedHoward Hinnant2010-12-101-0/+20
| | | | llvm-svn: 121502
* N3158 Missing preconditions for default-constructed match_result objectsHoward Hinnant2010-12-082-0/+76
| | | | llvm-svn: 121282
* cleaning up...Howard Hinnant2010-12-0824-8/+54
| | | | llvm-svn: 121275
* After a long break to wait for the atomic spec to settle, this completes the ↵Howard Hinnant2010-12-0811-0/+288
| | | | | | library part of <atomic>. It currently won't even parse as it depends on the existence of the intrinsics specified at http://libcxx.llvm.org/atomic_design_a.html. Everything has been tested using fake intrinsics which have now been removed. As the intrinsics come online, the ATOMIC_* macros will need to be adjusted to reflect which operations are lock-free. These macros will probably need to be #ifdef'd for each supported platform. llvm-svn: 121267
* test: Rename string_op+= to string_op_plus_equal. Windows git doesn't like it.Michael J. Spencer2010-12-084-0/+0
| | | | llvm-svn: 121265
* atomics ...Howard Hinnant2010-12-077-748/+480
| | | | llvm-svn: 121202
* Work on <atomic> continues. The file size is actually sane now...Howard Hinnant2010-12-0710-0/+809
| | | | llvm-svn: 121181
* Getting <atomic> warmed back up. We have a hopefully more stable spec now. ↵Howard Hinnant2010-12-0612-0/+928
| | | | | | And I believe the intrinsic spec at http://libcxx.llvm.org/atomic_design_a.html is still good. llvm-svn: 121064
* N3189 Observers for the three handler functionsHoward Hinnant2010-12-023-0/+89
| | | | llvm-svn: 120712
* Implemented N3194Howard Hinnant2010-11-3018-695/+37
| | | | llvm-svn: 120458
* Update testsuite strucuture to latest draftHoward Hinnant2010-11-237-0/+84
| | | | llvm-svn: 120064
* Update testsuite strucuture to latest draftHoward Hinnant2010-11-2315-608/+0
| | | | llvm-svn: 120058
OpenPOWER on IntegriCloud