llvm-project/libcxx/test/std/numerics/numarray
Mark de Wever b8608b8723 [libc++] Use addressof in assignment operator.
Replace `&__rhs` with `_VSTD::addressof(__rhs)` to guard against ADL hijacking
of `operator&` in `operator=`. Thanks to @CaseyCarter for bringing it to our
attention.

Similar issues with hijacking `operator&` still exist, they will be
addressed separately.

Reviewed By: #libc, Quuxplusone, ldionne

Differential Revision: https://reviews.llvm.org/D110852
2021-10-07 18:10:47 +02:00
..
class.gslice
class.slice
template.gslice.array [libc++] Remove workaround for .fail.cpp tests that don't have clang-verify markup 2020-04-15 10:53:37 -04:00
template.indirect.array [libc++] Remove workaround for .fail.cpp tests that don't have clang-verify markup 2020-04-15 10:53:37 -04:00
template.mask.array [libc++] Remove workaround for .fail.cpp tests that don't have clang-verify markup 2020-04-15 10:53:37 -04:00
template.slice.array [libc++] Add slice_array operator= valarray overload. 2020-12-02 10:49:20 -08:00
template.valarray [libc++] Use addressof in assignment operator. 2021-10-07 18:10:47 +02:00
valarray.nonmembers [libc++] Fix result-type and value_type computation in <valarray>. 2021-06-05 12:29:36 -04:00
valarray.range
valarray.syn