File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
libcxx/test/libcxx/thread Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 24
24
25
25
#include " check_assertion.h"
26
26
27
- int main (int , char **) {
27
+ int main (int , char **) {
28
28
{
29
- TEST_LIBCPP_ASSERT_FAILURE (
30
- [] { [[maybe_unused]] std::latch l (-1 ); }(),
31
- " latch::latch(ptrdiff_t): latch cannot be "
32
- " initialized with a negative value" );
29
+ TEST_LIBCPP_ASSERT_FAILURE ([]{ std::latch l (-1 ); }(),
30
+ " latch::latch(ptrdiff_t): latch cannot be "
31
+ " initialized with a negative value" );
33
32
}
34
33
35
34
// We can't check the precondition for max() because there's no value
Original file line number Diff line number Diff line change 26
26
int main (int , char **) {
27
27
{
28
28
TEST_LIBCPP_ASSERT_FAILURE (
29
- [] { [[maybe_unused]] std::counting_semaphore<> s (-1 ); }(),
29
+ [] { std::counting_semaphore<> s (-1 ); }(),
30
30
" counting_semaphore::counting_semaphore(ptrdiff_t): counting_semaphore cannot be "
31
31
" initialized with a negative value" );
32
32
}
You can’t perform that action at this time.
0 commit comments