7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
// REQUIRES: has-unix-headers
10
- // UNSUPPORTED: c++03
10
+ // UNSUPPORTED: c++03, c++11, c++14, c++17
11
11
// UNSUPPORTED: libcpp-hardening-mode=unchecked
12
12
// XFAIL: availability-verbose_abort-missing
13
13
18
18
19
19
int main (int , char **) {
20
20
using Iter = std::common_iterator<int *, sentinel_wrapper<int *>>;
21
- int a[] = {1 , 2 , 3 };
21
+ int a[] = {1 , 2 , 3 };
22
22
sentinel_wrapper<int *> s;
23
23
Iter valid_i = a;
24
24
@@ -30,10 +30,13 @@ int main(int, char**) {
30
30
TEST_LIBCPP_ASSERT_FAILURE (++i, " Attempted to increment a non-dereferenceable common_iterator" );
31
31
TEST_LIBCPP_ASSERT_FAILURE (i++, " Attempted to increment a non-dereferenceable common_iterator" );
32
32
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" );
34
35
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" );
37
40
std::ranges::iter_swap (valid_i, valid_i); // Ok
38
41
}
39
42
0 commit comments