1 // { dg-do compile { target c++20 } }
5 #include <testsuite_hooks.h>
10 std::vector
<int> v1
= {1, 2, 3};
11 std::vector
<int> v2
= {0, 1};
15 VERIFY(v1
.size() == 2);
16 VERIFY(v1
.at(0) == 0);
17 VERIFY(v1
.at(1) == 1);
19 VERIFY(v2
.size() == 3);
27 static_assert(test_std_swap());
32 std::vector
<int> v1
= {1, 2, 3};
33 std::vector
<int> v2
= {0, 1};
37 VERIFY(v1
.size() == 2);
38 VERIFY(v1
.at(0) == 0);
39 VERIFY(v1
.at(1) == 1);
41 VERIFY(v2
.size() == 3);
49 static_assert(test_member_swap());