Tolerate [[nodiscard]] annotations in the STL. Reviewed as https://reviews.llvm.org/D39033

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@318276 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Billy Robert O'Neal III
2017-11-15 07:40:37 +00:00
parent 88626bf496
commit 9ae62c79cc
58 changed files with 98 additions and 74 deletions

View File

@@ -61,7 +61,7 @@ int main()
const optional<X> opt;
try
{
opt.value();
(void)opt.value();
assert(false);
}
catch (const bad_optional_access&)