File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
libcxx/test/std/containers/sequences/vector/vector.data Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ TEST_CONSTEXPR_CXX20 bool tests()
3939 assert (is_contiguous_container_asan_correct (v));
4040 }
4141 {
42- std::vector<Nasty> v (100 );
42+ const std::vector<Nasty> v (100 );
4343 assert (v.data () == std::addressof (v.front ()));
4444 assert (is_contiguous_container_asan_correct (v));
4545 }
@@ -55,7 +55,7 @@ TEST_CONSTEXPR_CXX20 bool tests()
5555 assert (is_contiguous_container_asan_correct (v));
5656 }
5757 {
58- std::vector<Nasty, min_allocator<Nasty>> v (100 );
58+ const std::vector<Nasty, min_allocator<Nasty>> v (100 );
5959 assert (v.data () == std::addressof (v.front ()));
6060 assert (is_contiguous_container_asan_correct (v));
6161 }
@@ -70,7 +70,7 @@ TEST_CONSTEXPR_CXX20 bool tests()
7070 assert (is_contiguous_container_asan_correct (v));
7171 }
7272 {
73- std::vector<Nasty, safe_allocator<Nasty>> v (100 );
73+ const std::vector<Nasty, safe_allocator<Nasty>> v (100 );
7474 assert (v.data () == std::addressof (v.front ()));
7575 assert (is_contiguous_container_asan_correct (v));
7676 }
You can’t perform that action at this time.
0 commit comments