Skip to content

Commit a7bc728

Browse files
committed
Fix CI
1 parent 15d5458 commit a7bc728

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libcxx/test/libcxx/diagnostics/functional.nodiscard.verify.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ void test() {
3535

3636
// Identity
3737

38+
#if TEST_STD_VER >= 20
3839
std::identity{}(i); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
40+
#endif
3941

4042
// Partial function application
4143

@@ -51,6 +53,7 @@ void test() {
5153
std::bind<float>([](int a) { return a; }, 94);
5254

5355
// Reference wrappers
56+
5457
std::reference_wrapper<int> rw{i};
5558
rw.get(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
5659
std::function<int(int)> vf;

0 commit comments

Comments
 (0)