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

This is a backport of the test fixes made in #151935

Fixes #150601

>From 4cadb6121917fe4a2f7aef0570585daf850dcac0 Mon Sep 17 00:00:00 2001
From: Corentin Jabot <corentinja...@gmail.com>
Date: Tue, 5 Aug 2025 10:51:26 +0200
Subject: [PATCH] [libc++] Fix tests after #144220

This is a backport of the test fixes made in #151935

Fixes #150601
---
 .../expected/expected.expected/value.observers.verify.cpp    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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

_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to