Message ID | 20150622151114.GK2856@redhat.com |
---|---|
State | New |
Headers | show |
commit 3592c4a31ba7f3af4eb8111565888651652ad7b1 Author: Jonathan Wakely <jwakely@redhat.com> Date: Mon Jun 22 15:08:55 2015 +0100 * testsuite/26_numerics/complex/value_operations/1.cc: Use non-negative rho argument. 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 ); }