More tests for modules frexpf-ieee, frexp-ieee, frexpl-ieee.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Feb 2012 15:02:40 +0000 (16:02 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Feb 2012 15:02:40 +0000 (16:02 +0100)
tests/test-frexp-ieee.c
tests/test-frexpf-ieee.c
tests/test-frexpl-ieee.c

index 8a3897e..258d1dd 100644 (file)
@@ -62,6 +62,12 @@ main ()
     mantissa = frexp (Infinityd (), &exp);
     ASSERT (mantissa == Infinityd ());
   }
+  {
+    int exp = -9999;
+    double mantissa;
+    mantissa = frexp (- Infinityd (), &exp);
+    ASSERT (mantissa == - Infinityd ());
+  }
 
   return 0;
 }
index d8e3f73..ea32ea9 100644 (file)
@@ -62,6 +62,12 @@ main ()
     mantissa = frexpf (Infinityf (), &exp);
     ASSERT (mantissa == Infinityf ());
   }
+  {
+    int exp = -9999;
+    float mantissa;
+    mantissa = frexpf (- Infinityf (), &exp);
+    ASSERT (mantissa == - Infinityf ());
+  }
 
   return 0;
 }
index ebe72c7..c9fae56 100644 (file)
@@ -62,6 +62,12 @@ main ()
     mantissa = frexpl (Infinityl (), &exp);
     ASSERT (mantissa == Infinityl ());
   }
+  {
+    int exp = -9999;
+    long double mantissa;
+    mantissa = frexpl (- Infinityl (), &exp);
+    ASSERT (mantissa == - Infinityl ());
+  }
 
   return 0;
 }