[libcxx-commits] [libcxx] [libc++] Fix typo in is_always_lock_free test (PR #113169)

Damien L-G via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 21 08:35:19 PDT 2024


================
@@ -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);
----------------
dalg24 wrote:

```suggestion
    ASSERT_SAME_TYPE(decltype(is_lock_free), bool);
```


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


More information about the libcxx-commits mailing list