[libcxx-commits] [libcxx] [libc++] Add tests for the ABI break introduced by switching to _LIBCPP_COMPRESSED_PAIR (PR #154559)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 20 09:15:31 PDT 2025


================
@@ -0,0 +1,165 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: libcpp-has-abi-fix-unordered-container-size-type, libcpp-abi-no-compressed-pair-padding
+
+// std::unique_ptr is used as an implementation detail of the unordered containers, so the layout of
----------------
ldionne wrote:

This comment is for `unordered_map` but the test is for `std::map`. `set` has the same issue.

https://github.com/llvm/llvm-project/pull/154559


More information about the libcxx-commits mailing list