1.cc: Use non-negative rho argument.
authorJonathan Wakely <jwakely@redhat.com>
Mon, 22 Jun 2015 15:09:32 +0000 (16:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 22 Jun 2015 15:09:32 +0000 (16:09 +0100)
* testsuite/26_numerics/complex/value_operations/1.cc: Use
non-negative rho argument.

From-SVN: r224739

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc

index 1166a1880ce86a7b431de3e2d29a92ebd6d0a14e..5aad2456912645e78c0074acbc9732a795eb09ae 100644 (file)
@@ -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
index 1caf9f1ebeb047a16200da0b4caf05a4f216e56d..a1e0a6b00e35ad8281880f04ff5da8074b4e9ee5 100644 (file)
@@ -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 );
 }