llvm-project/libcxx/test/std/numerics
Mikhail Maltsev 2b20304def [libcxx] Avoid spurious construction of valarray elements
Summary:
Currently libc++ implements some operations on valarray by using the
resize method. This method has a parameter with a default value.
Because of this, valarray may spuriously construct and destruct
objects of valarray's element type.
    
This patch fixes this issue and adds corresponding test cases.


Reviewers: EricWF, mclow.lists

Reviewed By: mclow.lists

Subscribers: rogfer01, cfe-commits

Differential Revision: https://reviews.llvm.org/D41992

llvm-svn: 324596
2018-02-08 11:33:48 +00:00
..
c.math Placate unused variable warnings uncovered by improvements to clang's -Wunused-variable 2017-10-14 15:52:38 +00:00
cfenv/cfenv.syn Move remaining _LIBCPP_VERSION tests into test/libcxx 2016-06-22 02:23:22 +00:00
complex.number Implement LWG2870: Default value of parameter theta of polar should be dependent 2018-01-31 21:42:39 +00:00
numarray [libcxx] Avoid spurious construction of valarray elements 2018-02-08 11:33:48 +00:00
numeric.ops Change add_ten to add_one to avoid triggering ubsan integer overflow. 2018-01-08 19:45:16 +00:00
numeric.requirements
numerics.general
rand Tolerate even more [[nodiscard]] in the STL. Reviewed as https://reviews.llvm.org/D39080 2017-11-15 07:45:07 +00:00
nothing_to_do.pass.cpp