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
1818
1919int 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