From: Jonathan Wakely Date: Mon, 22 Jun 2015 15:09:32 +0000 (+0100) Subject: 1.cc: Use non-negative rho argument. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e39c4966c741932e5a88a073c6c9201bba5d536c;p=gcc.git 1.cc: Use non-negative rho argument. * testsuite/26_numerics/complex/value_operations/1.cc: Use non-negative rho argument. From-SVN: r224739 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1166a1880ce..5aad2456912 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 1caf9f1ebeb..a1e0a6b00e3 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 ); }