llvm-project/libcxx/test
Mark de Wever aac5b84d4b [libc++] Improve atomic_fetch_(add|sub).*.
While looking at the review comments in D103765 there was an oddity in
the tests for the following functions:
- atomic_fetch_add
- atomic_fetch_add_explicit
- atomic_fetch_sub
- atomic_fetch_sub_explicit

Libc++ allows usage of
`atomic_fetch_add<int>(atomic<int*>*, atomic<int*>::difference_type);`
MSVC and GCC reject this code: https://godbolt.org/z/9d8WzohbE

This makes the atomic `fetch(add|sub).*` Standard conforming and removes the non-conforming extensions.

Fixes PR47908

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D103983
2021-10-08 17:41:57 +02:00
..
configs [libc++] Add a from-scratch testing config for GCC 2021-10-07 17:26:25 -04:00
libcxx [libc++] Improve atomic_fetch_(add|sub).*. 2021-10-08 17:41:57 +02:00
std [libc++] Improve atomic_fetch_(add|sub).*. 2021-10-08 17:41:57 +02:00
support [libc++] Use addressof in assignment operator. 2021-10-07 18:10:47 +02:00
CMakeLists.txt [libc++] Simplify writing testing config files 2021-10-06 15:51:02 -04:00
lit.cfg.py [libc++] Allow specifying custom Lit config files 2020-06-18 10:06:04 -04:00