File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
libcxx/test/libcxx/utilities/smartptr Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,7 @@ void test() {
4848 sPtr .get (); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
4949 *sPtr ; // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
5050 sPtr .use_count (); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
51- #if TEST_STD_VER <= 20
52- sPtr .unique (); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
53- #endif
51+ sPtr .unique (); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
5452 // expected-warning@+1 {{ignoring return value of function declared with 'nodiscard' attribute}}
5553 sPtr .owner_before (std::shared_ptr<int >());
5654 // expected-warning@+1 {{ignoring return value of function declared with 'nodiscard' attribute}}
You can’t perform that action at this time.
0 commit comments