Skip to content

Commit

Permalink
Update libcxx/map
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Nov 26, 2023
1 parent 99f8426 commit 443c3a7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/sources/libcxx/map/map.cons/deduct.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,18 @@ int main(int, char**)
assert(m.get_allocator().get_id() == 45);
}

#if !defined(TEST_GCC)
{
// Examples from LWG3025
#if !defined(TEST_GCC)
momo::stdish::map m{std::pair{1, 1}, {2, 2}, {3, 3}};
ASSERT_SAME_TYPE(decltype(m), momo::stdish::map<int, int>);
#else
momo::stdish::map<int, int> m;
#endif

#if !defined(TEST_MSVC) && !defined(TEST_CLANG)
#ifdef LIBCPP_HAS_BAD_NEWS_FOR_MOMO
momo::stdish::map m2{m.begin(), m.end()};
ASSERT_SAME_TYPE(decltype(m2), momo::stdish::map<int, int>);
#endif
}
#endif

{
// Examples from LWG3531
Expand Down

0 comments on commit 443c3a7

Please sign in to comment.