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 32f3d2e commit 35d6208Copy full SHA for 35d6208
libcxx/test/libcxx/language.support/nodiscard.verify.cpp
@@ -81,13 +81,11 @@ void test() {
81
}
82
#endif
83
84
-#if TEST_STD_VER >= 20
85
{ // <initializer_list>
86
std::initializer_list<int> il{94, 82, 49};
87
88
il.size(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
89
il.begin(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
90
il.end(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
91
92
-#endif
93
0 commit comments