bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix frexp and frexl tests


From: Bruno Haible
Subject: fix frexp and frexl tests
Date: Sat, 19 May 2007 22:29:31 +0200
User-agent: KMail/1.5.4

The configure tests for frexp and frexpl fail on compilers that are not C99
compliant. This fixes the tests.

2007-05-19  Bruno Haible  <address@hidden>

        * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
        * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.

--- m4/frexp.m4 3 Apr 2007 23:28:37 -0000       1.4
+++ m4/frexp.m4 19 May 2007 20:24:52 -0000
@@ -1,4 +1,4 @@
-# frexp.m4 serial 2
+# frexp.m4 serial 3
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -84,8 +84,8 @@
         return 1;
     }
   /* Test on infinite numbers.  */
+  x = 1.0 / 0.0;
   {
-    x = 1.0 / 0.0;
     int exp;
     double y = frexp (x, &exp);
     if (y != x)
--- m4/frexpl.m4        18 May 2007 17:21:45 -0000      1.7
+++ m4/frexpl.m4        19 May 2007 20:24:52 -0000
@@ -1,4 +1,4 @@
-# frexpl.m4 serial 3
+# frexpl.m4 serial 4
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -108,16 +108,16 @@
 {
   volatile long double x;
   /* Test on finite numbers.  */
+  x = 16.0L;
   {
     int exp = -9999;
-    x = 16.0L;
     frexpl (x, &exp);
     if (exp != 5)
       return 1;
   }
   /* Test on infinite numbers.  */
+  x = 1.0L / 0.0L;
   {
-    x = 1.0L / 0.0L;
     int exp;
     long double y = frexpl (x, &exp);
     if (y != x)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]