summaryrefslogtreecommitdiffstats
path: root/libcxx/test/utilities/function.objects
Commit message (Collapse)AuthorAgeFilesLines
* Move test into test/std subdirectory.Eric Fiselier2014-12-20102-6174/+0
| | | | llvm-svn: 224658
* Add tests to ensure that reference_wrapper<T> is trivially copyable. This ↵Marshall Clow2014-11-171-5/+36
| | | | | | was added to C++1z with the adoption of N4277, but libc++ already implemented it as a conforming extension. No code changes were needed, just more tests. llvm-svn: 222132
* Actually mark the tests an unsupported with MSAN (not just ASAN)Eric Fiselier2014-11-049-9/+9
| | | | llvm-svn: 221240
* Mark tests that replace operator new/delete as UNSUPPORTED with ASAN and MSAN.Eric Fiselier2014-11-049-0/+18
| | | | | | | tests that replace operator new/delete won't link when using ASAN and MSAN because these sanitizers also replace new/delete. llvm-svn: 221236
* Add test for type properties of std::reference_wrapperEric Fiselier2014-11-041-0/+27
| | | | llvm-svn: 221224
* Whitespace maintenance. Remove a bunch of tabs that snuck in. No ↵Marshall Clow2014-10-181-3/+3
| | | | | | functionality change llvm-svn: 220142
* Fix a problem with reference_wrapper in C++03 that was causing counting ↵Marshall Clow2014-08-041-0/+18
| | | | | | predicates to fail. Add a test to make sure it works. However, most of the reference_wrapper tests still fail in C++03 mode, due to a lack of decltype. No change there. llvm-svn: 214760
* Fix libc++ bug #20039: 'Constructing std::function from empty compatible ↵Marshall Clow2014-06-302-0/+36
| | | | | | std::function results in half-empty state' Thanks to Agustin Berge for the report, and for his and Eric Fiselier's work on a fix. llvm-svn: 212070
* Bug #19473. If you pass an allocator to std::function, we should use that ↵Marshall Clow2014-04-181-0/+9
| | | | | | allocator, not construct one from scratch. Add a test to make sure llvm-svn: 206623
* Fix for PR17606 - result_of (and INVOKE) works incorrectly for member ↵Marshall Clow2014-02-101-0/+50
| | | | | | function pointers with ref qualifiers. Also a drive-by fix for common_type in C++03 mode. Thanks to Michel Morin for the bug report and the proposed fix. llvm-svn: 201101
* Const qualify __mem_fn call operatorPeter Collingbourne2014-01-225-0/+26
| | | | | | | | QOI improvement. Differential Revision: http://llvm-reviews.chandlerc.com/D2059 llvm-svn: 199848
* Add license headers to a bunch of libc++ files that were missing them. No ↵Marshall Clow2014-01-164-0/+36
| | | | | | functionality change. Fixes 18291. Thanks to Nico for the bug report and the patch. llvm-svn: 199400
* Found six (nmostly) identical files named 'test_allocator.h' in the libcxx ↵Marshall Clow2013-12-037-123/+6
| | | | | | test suite. Moved one to /support, made it a superset, and removed all but one of the others, and iupdated all the includes. Left the odd one (thread/futures/test_allocator.h) for later. llvm-svn: 196174
* Implement n3789; constexpr support in named function objectsMarshall Clow2013-09-2819-0/+114
| | | | llvm-svn: 191626
* LWG Issue 2148: Hashing EnumsMarshall Clow2013-09-032-0/+87
| | | | llvm-svn: 189831
* More support for N3657; tests for is_transparentMarshall Clow2013-08-134-0/+183
| | | | llvm-svn: 188242
* Implement N3421; comparison predicates<void>Marshall Clow2013-07-2919-0/+250
| | | | llvm-svn: 187357
* War on tabs.Howard Hinnant2013-07-081-3/+3
| | | | llvm-svn: 185865
* The bind and function functor constructors and assignment operators were ↵Howard Hinnant2013-07-011-0/+35
| | | | | | overly general and getting confused with the copy constructor and copy assignment operators. Constrained them. This fixes http://llvm.org/bugs/show_bug.cgi?id=16385 llvm-svn: 185297
* Fix bind by making _is_valid_bind_return more robust. It should return ↵Howard Hinnant2013-06-301-0/+51
| | | | | | false instead of give a compile time error, always. The problem was down in ____mu_return, the version that handles nested bind objects. This fixes http://llvm.org/bugs/show_bug.cgi?id=16343 llvm-svn: 185289
* Remove cv qualifiers from member pointers in the __member_pointer_traits ↵Howard Hinnant2013-05-151-0/+18
| | | | | | test. This was causing a const-qualified bind result to malfunction. This was a recent regression due to the new use of __member_pointer_traits in restricting the __invokable and __invoke_of tests. llvm-svn: 181935
* Expose accidentally removed __compressed_pair constructor taking ↵Howard Hinnant2013-05-061-0/+10
| | | | | | piecewise_construct_t. This fixes http://llvm.org/bugs/show_bug.cgi?id=15918 . llvm-svn: 181217
* This is a start at making the libc++ test suite friendlier to the ↵Howard Hinnant2013-03-231-1/+6
| | | | | | -fnoexceptions flag. Although this is not a complete solution, it does reduce the number of test failures on OS X from 467 to 128 on OS X when -fno-exceptions is enabled, and does not impact the number of failures at all when -fno-exceptions is not enabled. The bulk of this code was donated anonymously. llvm-svn: 177824
* Relax the complete-type checks that are happening under __invokable<Fp, ↵Howard Hinnant2012-07-161-0/+29
| | | | | | Args...> to only check Fp, and not Args... . This should be sufficient to give the desired high quality diagnostics under both bind and function. And this allows a test reported by Rich E on cfe-dev to pass. Tracked by <rdar://problem/11880602>. llvm-svn: 160285
* Starting using murmur2 when combining multiple size_t's into a single hash, ↵Howard Hinnant2011-12-051-1/+2
| | | | | | and also for basic_string. Also made hash<thread::id> ever so slighly more portable. I had to tweak one test which is questionable (definitely not portable) anyway. llvm-svn: 145795
* Correct for new rules regarding implicitly deleted special members. ↵Howard Hinnant2011-07-012-2/+2
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=10191 llvm-svn: 134248
* 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 got accidentally removedHoward Hinnant2010-12-101-0/+20
| | | | llvm-svn: 121502
* cleaning up...Howard Hinnant2010-12-0821-634/+0
| | | | llvm-svn: 121275
* Update testsuite strucuture to latest draftHoward Hinnant2010-11-231-12/+0
| | | | llvm-svn: 120029
* license changeHoward Hinnant2010-11-16110-220/+220
| | | | llvm-svn: 119395
* Changed __config to react to all of clang's currently documented has_feature ↵Howard Hinnant2010-09-044-8/+8
| | | | | | flags, and renamed _LIBCPP_MOVE to _LIBCPP_HAS_NO_RVALUE_REFERENCES to be more consistent with the rest of the libc++'s flags, and with clang's nomenclature. llvm-svn: 113086
* Fixing whitespace problemsHoward Hinnant2010-08-22103-105/+5214
| | | | llvm-svn: 111767
* Installed allocator into std::functionHoward Hinnant2010-08-207-6/+361
| | | | llvm-svn: 111672
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-11110-110/+110
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-11110-0/+400
llvm-svn: 103490
OpenPOWER on IntegriCloud