Skip to content

Commit 1d9e310

Browse files
Fix assign_initializer_list.pass.cpp
1 parent f3b5970 commit 1d9e310

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libcxx/include/__tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 _NodePtr __tree_prev_
209209

210210
// Returns: pointer to a node which has no children
211211
template <class _NodePtr>
212-
_LIBCPP_HIDE_FROM_ABI _NodePtr __tree_leaf(_NodePtr __x) _NOEXCEPT {
212+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 _NodePtr __tree_leaf(_NodePtr __x) _NOEXCEPT {
213213
_LIBCPP_ASSERT_INTERNAL(__x != nullptr, "node shouldn't be null");
214214
while (true) {
215215
if (__x->__left_ != nullptr) {

libcxx/test/std/containers/associative/map/map.cons/assign_initializer_list.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ TEST_CONSTEXPR_CXX26 bool duplicate_keys_test() {
6767

6868
TEST_CONSTEXPR_CXX26 bool test() {
6969
test_basic();
70-
// duplicate_keys_test();
70+
duplicate_keys_test();
7171
return true;
7272
}
7373

7474
int main(int, char**) {
75-
// assert(test());
75+
assert(test());
7676
#if TEST_STD_VER >= 26
7777
static_assert(test());
7878
#endif

0 commit comments

Comments
 (0)