We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff99ffa commit 5fb98f3Copy full SHA for 5fb98f3
libcxx/test/libcxx/utilities/optional/nodiscard.verify.cpp
@@ -49,7 +49,7 @@ struct CRVal {
49
void test() {
50
std::bad_optional_access ex;
51
52
- ex.what(); // expect-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
+ ex.what(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
53
54
std::optional<int> opt;
55
const std::optional<int> cOpt;
0 commit comments