summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/rval-references-examples.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for "perfect" forwardingDouglas Gregor2011-01-211-0/+22
| | | | llvm-svn: 124005
* Implement the preference for move-construction over copy-constructionDouglas Gregor2011-01-211-1/+3
| | | | | | | | | | | | when returning an NRVO candidate expression. For example, this properly picks the move constructor when dealing with code such as MoveOnlyType f() { MoveOnlyType mot; return mot; } The previously-XFAIL'd rvalue-references test case now works, and has been moved into the appropriate paragraph-specific test case. llvm-svn: 123992
* Add unique_ptr example to test the use of rvalue references. I'll growDouglas Gregor2011-01-211-0/+88
this example further as more rvalue-reference features come online. llvm-svn: 123980
OpenPOWER on IntegriCloud