You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/numerics/numarray/template.valarray/valarray.cons
Mikhail Maltsev 171ed2198d [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

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@324596 91177308-0d34-0410-b5e6-96231b3b80d8
7 years ago
..
copy.pass.cpp Enable the -Wsign-compare warning to better support MSVC 8 years ago
default.pass.cpp [libcxx] Avoid spurious construction of valarray elements 7 years ago
gslice_array.pass.cpp Move test into test/std subdirectory. 10 years ago
indirect_array.pass.cpp Move test into test/std subdirectory. 10 years ago
initializer_list.pass.cpp Cleanup _LIBCPP_HAS_NO_<c++11-feature> macros in the numeric tests and headers 8 years ago
mask_array.pass.cpp Move test into test/std subdirectory. 10 years ago
move.pass.cpp Clean up more usages of _LIBCPP_HAS_NO_RVALUE_REFERENCES 8 years ago
pointer_size.pass.cpp Enable the -Wsign-compare warning to better support MSVC 8 years ago
size.pass.cpp [libcxx] Avoid spurious construction of valarray elements 7 years ago
slice_array.pass.cpp Move test into test/std subdirectory. 10 years ago
value_size.pass.cpp Move test into test/std subdirectory. 10 years ago