Add [[nodiscard]] attribute to std::launder
authorJonathan Wakely <jwakely@redhat.com>
Fri, 24 Nov 2017 00:00:46 +0000 (00:00 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 24 Nov 2017 00:00:46 +0000 (00:00 +0000)
commita8541d9021fa0424397a63e5d7ef3b2ef0ea7c47
tree869e4a4b94ada09249de3fa75a23531b682ea3cc
parent117e6b50b6879c11589bc8287199652a626594d1
Add [[nodiscard]] attribute to std::launder

* libsupc++/new (launder): Add nodiscard attribute.
* testsuite/18_support/launder/nodiscard.cc: New test.

From-SVN: r255127
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/new
libstdc++-v3/testsuite/18_support/launder/nodiscard.cc [new file with mode: 0644]