diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2015-06-22 16:09:32 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2015-06-22 16:09:32 +0100 |
commit | e39c4966c741932e5a88a073c6c9201bba5d536c (patch) | |
tree | 900576146c9f71225bd55d9b07aaadac99707ae2 | |
parent | e51d877098c6ec07ae4c97ca58d09c5e70a163e8 (diff) | |
download | gcc-e39c4966c741932e5a88a073c6c9201bba5d536c.zip gcc-e39c4966c741932e5a88a073c6c9201bba5d536c.tar.gz gcc-e39c4966c741932e5a88a073c6c9201bba5d536c.tar.bz2 |
1.cc: Use non-negative rho argument.
* testsuite/26_numerics/complex/value_operations/1.cc: Use
non-negative rho argument.
From-SVN: r224739
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1166a18..5aad245 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2015-06-22 Jonathan Wakely <jwakely@redhat.com> + * 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 1caf9f1..a1e0a6b 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 ); } |