summaryrefslogtreecommitdiffstats
path: root/libcxx/test/utilities/memory/unique.ptr
Commit message (Collapse)AuthorAgeFilesLines
* Move test into test/std subdirectory.Eric Fiselier2014-12-20169-9209/+0
| | | | llvm-svn: 224658
* test: Make it possible to opt in to use_clang_verify per testJustin Bogner2014-09-031-0/+2
| | | | | | | | | | | This modifies the use_clang_verify parameter I added in r217009 to only apply to tests that specifically ask for it via // USE_VERIFY. This allows us to incrementally convert tests, but start enjoying the benefits right away. Suggested by Eric Fiselier in code review. llvm-svn: 217017
* test: Allow using clang -verify for failures rather than exit 1Justin Bogner2014-09-031-2/+3
| | | | | | | | | | | | | | | | | Currently, failure tests work by checking that compilation exits 1. This can lead to tests that fail for the wrong reason, so it'd be preferable to convert them to check for specific errors. This adds use_clang_verify parameter that runs failure tests using clang's -verify flag. I'll convert some tests in subsequent commits, and once all of the tests are converted we should key this on whether cxx_under_test is clang. I've also converted one of the unique.ptr tests, since it's the one that motivated the idea of using clang -verify when possible in the review of r216317. llvm-svn: 217009
* Add return statement to a test class's assignment operator. Defect found by ↵Eric Fiselier2014-08-231-1/+1
| | | | | | Coverity Scan. llvm-svn: 216317
* Implement n3656 - make_unique. Thanks to Howard for the review and suggestions.Marshall Clow2013-07-016-0/+146
| | | | llvm-svn: 185352
* default_delete needs a static_assert against void types. I had previously ↵Howard Hinnant2013-04-241-0/+24
| | | | | | thought that sizeof(void) would take care of this. I was wrong. llvm-svn: 180213
* Andrew Morrow: There are two tests under test/utilities/memory that heap ↵Howard Hinnant2012-08-021-2/+0
| | | | | | | | | | | | | allocate two integers which remain unused and are subsequently leaked, so the test fail when run under valgrind. Unless I'm overlooking a subtle reason why they are needed I think they can be removed, allowing these tests to pass under valgrind. The attached patch removes the variables. If there is a reason for them to exist, I can change this to just delete them at the end of the test. llvm-svn: 161195
* Modernize relational operators for shared_ptr and unique_ptr. This includes ↵Howard Hinnant2012-02-211-0/+71
| | | | | | adding support for nullptr, and using less<T*>. Fixes http://llvm.org/bugs/show_bug.cgi?id=12056. llvm-svn: 151084
* license changeHoward Hinnant2010-11-16161-322/+322
| | | | llvm-svn: 119395
* Changed __config to react to all of clang's currently documented has_feature ↵Howard Hinnant2010-09-046-60/+60
| | | | | | 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-22161-161/+8967
| | | | llvm-svn: 111767
* US 108, N3109Howard Hinnant2010-08-211-1/+1
| | | | llvm-svn: 111747
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-11161-161/+161
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-11161-0/+161
llvm-svn: 103490
OpenPOWER on IntegriCloud