Skip to content

Commit

Permalink
[FIX] libc++: aligned_allocator_test
Browse files Browse the repository at this point in the history
not aligned in libc++
  • Loading branch information
eseiler committed Nov 12, 2023
1 parent fcb7d62 commit 4dac85c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/utility/container/aligned_allocator_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ TEST(aligned_allocator, in_list)

TEST(aligned_allocator, in_map)
{
#ifdef _LIBCPP_VERSION
GTEST_SKIP() << "std::map not aligned in libc++";
#else
constexpr size_t alignment = 16;
using key_type = char;
using value_type = int;
Expand All @@ -251,4 +254,5 @@ TEST(aligned_allocator, in_map)
EXPECT_EQ(memory_alignment(&*(++it), alignment), 0u);
EXPECT_EQ(memory_alignment(&*(++it), alignment), 0u);
EXPECT_EQ(++it, container.end());
#endif
}

0 comments on commit 4dac85c

Please sign in to comment.