[libcxx-commits] [PATCH] D97044: [libc++] [C++2b] [P0943] Add stdatomic.h header.
Hubert Tong via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 10 21:21:42 PST 2022
hubert.reinterpretcast accepted this revision.
hubert.reinterpretcast added a comment.
LGTM with one comment.
================
Comment at: libcxx/test/std/atomics/stdatomic.h.syn/types.compile.pass.cpp:145-150
+ static_assert(std::memory_order_relaxed == ::memory_order_relaxed);
+ static_assert(std::memory_order_consume == ::memory_order_consume);
+ static_assert(std::memory_order_acquire == ::memory_order_acquire);
+ static_assert(std::memory_order_release == ::memory_order_release);
+ static_assert(std::memory_order_acq_rel == ::memory_order_acq_rel);
+ static_assert(std::memory_order_seq_cst == ::memory_order_seq_cst);
----------------
It's simple enough to also check the type and lvalueness.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97044/new/
https://reviews.llvm.org/D97044
More information about the libcxx-commits
mailing list