llvm-project/libcxx/test/std/numerics/numarray/template.valarray
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
..
valarray.access Enable the -Wsign-compare warning to better support MSVC 2016-12-11 05:31:00 +00:00
valarray.assign [libcxx] Avoid spurious construction of valarray elements 2018-02-08 11:33:48 +00:00
valarray.cassign
valarray.cons [libcxx] Avoid spurious construction of valarray elements 2018-02-08 11:33:48 +00:00
valarray.members Fix unused parameters and variables 2016-12-23 23:37:52 +00:00
valarray.sub
valarray.unary Enable the -Wsign-compare warning to better support MSVC 2016-12-11 05:31:00 +00:00
types.pass.cpp