[libcxx-commits] [libcxx] [libc++] Fix typo in is_always_lock_free test (PR #113169)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 21 07:22:51 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Louis Dionne (ldionne)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/113169.diff
1 Files Affected:
- (modified) libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp (+1-1)
``````````diff
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());
``````````
</details>
https://github.com/llvm/llvm-project/pull/113169
More information about the libcxx-commits
mailing list