diff options
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/StringMapTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/StringMapTest.cpp b/llvm/unittests/ADT/StringMapTest.cpp index 817fec6..1eac07b 100644 --- a/llvm/unittests/ADT/StringMapTest.cpp +++ b/llvm/unittests/ADT/StringMapTest.cpp @@ -17,6 +17,10 @@ using namespace llvm; namespace { +static_assert(sizeof(StringMap<uint32_t>) < + sizeof(StringMap<uint32_t, MallocAllocator &>), + "Ensure empty base optimization happens with default allocator"); + // Test fixture class StringMapTest : public testing::Test { protected: |