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()
39
39
assert (is_contiguous_container_asan_correct (v));
40
40
}
41
41
{
42
- std::vector<Nasty> v (100 );
42
+ const std::vector<Nasty> v (100 );
43
43
assert (v.data () == std::addressof (v.front ()));
44
44
assert (is_contiguous_container_asan_correct (v));
45
45
}
@@ -55,7 +55,7 @@ TEST_CONSTEXPR_CXX20 bool tests()
55
55
assert (is_contiguous_container_asan_correct (v));
56
56
}
57
57
{
58
- std::vector<Nasty, min_allocator<Nasty>> v (100 );
58
+ const std::vector<Nasty, min_allocator<Nasty>> v (100 );
59
59
assert (v.data () == std::addressof (v.front ()));
60
60
assert (is_contiguous_container_asan_correct (v));
61
61
}
@@ -70,7 +70,7 @@ TEST_CONSTEXPR_CXX20 bool tests()
70
70
assert (is_contiguous_container_asan_correct (v));
71
71
}
72
72
{
73
- std::vector<Nasty, safe_allocator<Nasty>> v (100 );
73
+ const std::vector<Nasty, safe_allocator<Nasty>> v (100 );
74
74
assert (v.data () == std::addressof (v.front ()));
75
75
assert (is_contiguous_container_asan_correct (v));
76
76
}
You can’t perform that action at this time.
0 commit comments