Skip to content

Commit 9c7a735

Browse files
committed
[libcxx] [test] improve expected/nodiscrard.verify
1 parent 5943a16 commit 9c7a735

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// UNSUPPORTED: c++03, c++11, c++14, c++17
9+
// REQUIRES: std-at-least-c++23
1010

1111
// <expected>
1212

13-
// Test that std::expected generates [[nodiscard]] warnings
13+
// Test that ignoring std::expected generates [[nodiscard]] warnings.
1414

1515
#include <expected>
1616

@@ -28,4 +28,4 @@ void test() {
2828

2929
// expected-warning@+1 {{ignoring return value of function declared with 'nodiscard' attribute}}
3030
returns_expected_void();
31-
}
31+
}

0 commit comments

Comments
 (0)