llvm-project/libcxx/test/std/numerics/numarray/template.valarray/valarray.cons
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
..
copy.pass.cpp
default.pass.cpp [libcxx] Avoid spurious construction of valarray elements 2018-02-08 11:33:48 +00:00
gslice_array.pass.cpp
indirect_array.pass.cpp
initializer_list.pass.cpp Cleanup _LIBCPP_HAS_NO_<c++11-feature> macros in the numeric tests and headers 2017-04-19 00:23:45 +00:00
mask_array.pass.cpp
move.pass.cpp Clean up more usages of _LIBCPP_HAS_NO_RVALUE_REFERENCES 2017-03-03 03:43:25 +00:00
pointer_size.pass.cpp
size.pass.cpp [libcxx] Avoid spurious construction of valarray elements 2018-02-08 11:33:48 +00:00
slice_array.pass.cpp
value_size.pass.cpp