[llvm-branch-commits] [libcxx] release/21.x: [libc++] Fix tests after #144220 (PR #152105)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 5 01:59:41 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Corentin Jabot (cor3ntin)

<details>
<summary>Changes</summary>

This is a backport of the test fixes made in #<!-- -->151935

Fixes #<!-- -->150601

---
Full diff: https://github.com/llvm/llvm-project/pull/152105.diff


1 Files Affected:

- (modified) libcxx/test/libcxx/utilities/expected/expected.expected/value.observers.verify.cpp (+3-2) 


``````````diff
diff --git a/libcxx/test/libcxx/utilities/expected/expected.expected/value.observers.verify.cpp b/libcxx/test/libcxx/utilities/expected/expected.expected/value.observers.verify.cpp
index 91a7db1d9a7c6..1a2d080d10c3c 100644
--- a/libcxx/test/libcxx/utilities/expected/expected.expected/value.observers.verify.cpp
+++ b/libcxx/test/libcxx/utilities/expected/expected.expected/value.observers.verify.cpp
@@ -124,8 +124,9 @@ void test() {
 #if _LIBCPP_HAS_EXCEPTIONS
   // expected-error-re@*:* {{call to deleted constructor of{{.*}}}}
   // expected-error-re@*:* {{call to deleted constructor of{{.*}}}}
-  // expected-error-re@*:* 1-2{{call to deleted constructor of{{.*}}}}
-  // expected-error-re@*:* 0-2{{call to deleted constructor of{{.*}}}}
 #endif
+// These diagnostics can also additionally be produced by static_assert (see GH150601).
+// expected-error-re@*:* 0-2{{call to deleted constructor of{{.*}}}}
+// expected-error-re@*:* 0-2{{call to deleted constructor of{{.*}}}}
 }
 // clang-format on

``````````

</details>


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


More information about the llvm-branch-commits mailing list