[libcxx-commits] [libcxx] [libc++] Fix typo in is_always_lock_free test (PR #113169)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 21 07:22:08 PDT 2024
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/113169
None
>From 5bdf0e3d04f41f509a2faab5e2b526088f843aef Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Mon, 21 Oct 2024 10:21:47 -0400
Subject: [PATCH] [libc++] Fix typo in is_always_lock_free test
---
.../std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp b/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
index e922bc7413514a..9fc90b34271213 100644
--- a/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
+++ b/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
@@ -52,7 +52,7 @@ void check_always_lock_free(std::atomic<T> const& a) {
// In all cases, also sanity-check it based on the implication always-lock-free => lock-free.
if (is_always_lock_free) {
auto is_lock_free = a.is_lock_free();
- ASSERT_SAME_TYPE(decltype(is_always_lock_free), bool const);
+ ASSERT_SAME_TYPE(decltype(is_lock_free), bool const);
assert(is_lock_free);
}
ASSERT_NOEXCEPT(a.is_lock_free());
More information about the libcxx-commits
mailing list