[libcxx] r216317 - Add return statement to a test class's assignment operator. Defect found by Coverity Scan.
Chandler Carruth
chandlerc at google.com
Sat Aug 23 17:13:03 PDT 2014
On Sat, Aug 23, 2014 at 4:40 PM, Jonathan Roelofs <jonathan at codesourcery.com
> wrote:
> This is a fail test... could it be that the missing return is actually
> part of the behavior being checked by this test?
Unless its testing a compilation failure no, and as it did compile that
seems unlikely.
You can test for the behavior of falling off the end of a function without
a return -- that behavior is undefined, so its impossible to write a test
against.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140823/5d38111e/attachment.html>
More information about the cfe-commits
mailing list