File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
test/std/containers/sequences/list Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ public:
344344
345345 _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __base_pointer __as_link () {
346346 return pointer_traits<__base_pointer>::pointer_to (
347- *static_cast <typename pointer_traits<__base_pointer>::element_type*>(this ));
347+ *static_cast <typename pointer_traits<__base_pointer>::element_type*>(std::addressof (* this ) ));
348348 }
349349};
350350
Original file line number Diff line number Diff line change 1212
1313#include < list>
1414#include < cassert>
15- #include < type_traits>
1615
1716#include " test_macros.h"
1817#include " DefaultOnly.h"
@@ -35,7 +34,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
3534 assert (l.back () == 0 );
3635 }
3736#if TEST_STD_VER >= 11
38- if (!std::is_constant_evaluated () ) {
37+ if (!TEST_IS_CONSTANT_EVALUATED ) {
3938 {
4039 std::list<DefaultOnly> l (10 );
4140 l.resize (5 );
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ TEST_CONSTEXPR_CXX26 void test_emplacable_concept_with_alloc() {
174174#endif
175175}
176176
177- TEST_CONSTEXPR_CXX26 void test_ctor_under_alloc () {
177+ void test_ctor_under_alloc () {
178178#if TEST_STD_VER >= 11
179179 int arr1[] = {42 };
180180 int arr2[] = {1 , 101 , 42 };
@@ -205,7 +205,7 @@ TEST_CONSTEXPR_CXX26 void test_ctor_under_alloc() {
205205#endif
206206}
207207
208- TEST_CONSTEXPR_CXX26 void test_ctor_under_alloc_with_alloc () {
208+ void test_ctor_under_alloc_with_alloc () {
209209#if TEST_STD_VER >= 11
210210 int arr1[] = {42 };
211211 int arr2[] = {1 , 101 , 42 };
Original file line number Diff line number Diff line change 1313#include < list>
1414#include < cassert>
1515#include < cstddef>
16- #include < type_traits>
1716
1817#include " test_macros.h"
1918#include " DefaultOnly.h"
@@ -88,7 +87,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
8887 assert (*i == 0 );
8988 }
9089
91- if (!std::is_constant_evaluated () ) {
90+ if (!TEST_IS_CONSTANT_EVALUATED ) {
9291 {
9392 std::list<DefaultOnly> l (3 );
9493 assert (l.size () == 3 );
You can’t perform that action at this time.
0 commit comments