From: redi Date: Mon, 22 Jun 2015 15:09:32 +0000 (+0000) Subject: * testsuite/26_numerics/complex/value_operations/1.cc: Use X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddda48dcf288834963d5bd073a293835e7937643;p=thirdparty%2Fgcc.git * testsuite/26_numerics/complex/value_operations/1.cc: Use non-negative rho argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224739 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1166a1880ce8..5aad24569126 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2015-06-22 Jonathan Wakely + * testsuite/26_numerics/complex/value_operations/1.cc: Use + non-negative rho argument. + * include/debug/list (__gnu_debug::list): Use allocator-aware _Safe_container base. * include/debug/string (__gnu_debug::basic_string): Use diff --git a/libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc b/libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc index 1caf9f1ebeb0..a1e0a6b00e35 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc @@ -53,7 +53,7 @@ void test01() complex_type e __attribute__((unused)) = conj(c); - complex_type f = polar(c.imag(), 0.0); + complex_type f = polar(std::abs(c.imag()), 0.0); VERIFY( f.real() != 0 ); }