Skip to content

Commit aca4fd3

Browse files
committed
Quick fix to new tests
1 parent 6e80158 commit aca4fd3

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

libcxx/test/libcxx/iterators/predef.iterators/counted.iterator/assert.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// REQUIRES: has-unix-headers
10-
// UNSUPPORTED: c++03
10+
// UNSUPPORTED: c++03, c++11, c++14, c++17
1111
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1212
// XFAIL: availability-verbose_abort-missing
1313

@@ -18,7 +18,7 @@
1818

1919
int main(int, char**) {
2020
using Iter = std::counted_iterator<int*>;
21-
int a[] = {1, 2, 3};
21+
int a[] = {1, 2, 3};
2222
Iter valid_i(a, 1);
2323

2424
{

libcxx/test/libcxx/iterators/predef.iterators/iterators.common/assert.pass.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// REQUIRES: has-unix-headers
10-
// UNSUPPORTED: c++03
10+
// UNSUPPORTED: c++03, c++11, c++14, c++17
1111
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1212
// XFAIL: availability-verbose_abort-missing
1313

@@ -18,7 +18,7 @@
1818

1919
int main(int, char**) {
2020
using Iter = std::common_iterator<int*, sentinel_wrapper<int*>>;
21-
int a[] = {1, 2, 3};
21+
int a[] = {1, 2, 3};
2222
sentinel_wrapper<int*> s;
2323
Iter valid_i = a;
2424

@@ -30,10 +30,13 @@ int main(int, char**) {
3030
TEST_LIBCPP_ASSERT_FAILURE(++i, "Attempted to increment a non-dereferenceable common_iterator");
3131
TEST_LIBCPP_ASSERT_FAILURE(i++, "Attempted to increment a non-dereferenceable common_iterator");
3232

33-
TEST_LIBCPP_ASSERT_FAILURE(std::ranges::iter_move(i), "Attempted to iter_move a non-dereferenceable common_iterator");
33+
TEST_LIBCPP_ASSERT_FAILURE(
34+
std::ranges::iter_move(i), "Attempted to iter_move a non-dereferenceable common_iterator");
3435

35-
TEST_LIBCPP_ASSERT_FAILURE(std::ranges::iter_swap(i, valid_i), "Attempted to iter_swap a non-dereferenceable common_iterator");
36-
TEST_LIBCPP_ASSERT_FAILURE(std::ranges::iter_swap(valid_i, i), "Attempted to iter_swap a non-dereferenceable common_iterator");
36+
TEST_LIBCPP_ASSERT_FAILURE(
37+
std::ranges::iter_swap(i, valid_i), "Attempted to iter_swap a non-dereferenceable common_iterator");
38+
TEST_LIBCPP_ASSERT_FAILURE(
39+
std::ranges::iter_swap(valid_i, i), "Attempted to iter_swap a non-dereferenceable common_iterator");
3740
std::ranges::iter_swap(valid_i, valid_i); // Ok
3841
}
3942

0 commit comments

Comments
 (0)