diff options
author | Hui <hui.xie1990@gmail.com> | 2024-05-24 17:17:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 12:17:34 -0400 |
commit | 96af54b9607eae9fc22ce9352f8271bf7510236b (patch) | |
tree | fb2c81cdf54b899581a4e8a0ec2ca52986efd883 /libcxx | |
parent | a1c9b9673c7408c64ac0d809e4aec5aee2eb2eb8 (diff) | |
download | llvm-96af54b9607eae9fc22ce9352f8271bf7510236b.zip llvm-96af54b9607eae9fc22ce9352f8271bf7510236b.tar.gz llvm-96af54b9607eae9fc22ce9352f8271bf7510236b.tar.bz2 |
[libc++][test] Close LWG3045 (#93053)
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/docs/Status/Cxx20Issues.csv | 2 | ||||
-rw-r--r-- | libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/types.compile.pass.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/docs/Status/Cxx20Issues.csv b/libcxx/docs/Status/Cxx20Issues.csv index db57b15..5f83fa3 100644 --- a/libcxx/docs/Status/Cxx20Issues.csv +++ b/libcxx/docs/Status/Cxx20Issues.csv @@ -70,7 +70,7 @@ "`3041 <https://wg21.link/LWG3041>`__","Unnecessary ``decay``\ in ``reference_wrapper``\ ","Jacksonville","|Complete|","" "`3042 <https://wg21.link/LWG3042>`__","``is_literal_type_v``\ should be inline","Jacksonville","|Complete|","" "`3043 <https://wg21.link/LWG3043>`__","Bogus postcondition for ``filesystem_error``\ constructor","Jacksonville","|Complete|","" -"`3045 <https://wg21.link/LWG3045>`__","``atomic<floating-point>``\ doesn't have ``value_type``\ or ``difference_type``\ ","Jacksonville","","" +"`3045 <https://wg21.link/LWG3045>`__","``atomic<floating-point>``\ doesn't have ``value_type``\ or ``difference_type``\ ","Jacksonville","|Complete|","18.0" "`3048 <https://wg21.link/LWG3048>`__","``transform_reduce(exec, first1, last1, first2, init)``\ discards execution policy","Jacksonville","|Complete|","17.0" "`3051 <https://wg21.link/LWG3051>`__","Floating point classifications were inadvertently changed in P0175","Jacksonville","|Nothing To Do|","" "`3075 <https://wg21.link/LWG3075>`__","``basic_string``\ needs deduction guides from ``basic_string_view``\ ","Jacksonville","|Complete|","" diff --git a/libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/types.compile.pass.cpp b/libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/types.compile.pass.cpp index 1a4e6df..b381236 100644 --- a/libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/types.compile.pass.cpp +++ b/libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/types.compile.pass.cpp @@ -17,8 +17,11 @@ template <class T> void test() { + // LWG 3045. atomic<floating-point> doesn't have value_type or difference_type + // https://cplusplus.github.io/LWG/issue3045 static_assert(std::is_same_v<typename std::atomic<T>::value_type, T>); static_assert(std::is_same_v<typename std::atomic<T>::difference_type, T>); + static_assert(std::is_standard_layout_v<std::atomic<T>>); static_assert(std::is_trivially_destructible_v<std::atomic<T>>); } |