Skip to content

Commit 7b15b46

Browse files
committed
Cleanup
1 parent 94a8b14 commit 7b15b46

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/test/libcxx/utilities/smartptr/nodiscard.verify.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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}}

0 commit comments

Comments
 (0)