[libcxx-commits] [libcxx] [libc++] Update container adaptors' tests (PR #224810)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sat Sep 19 04:20:28 PDT 2026


================
@@ -0,0 +1,33 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++23
+
+// <flat_map>
+
+//  template<class Key, class T, class Compare = less<Key>,
+//           class KeyContainer = vector<Key>, class MappedContainer = vector<T>>
+//    class flat_map;
+
+#include <flat_map>
+#include <functional>
+#include <vector>
+
+void test() {
+  // expected-error-re@*:* {{static assertion failed{{.*}}The stored elements key type must match the underlying container's key value_type.}}
----------------
frederick-vs-ja wrote:

These comments should also be changed.

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


More information about the libcxx-commits mailing list