single-precision-constant.c: Tweak for non-C99 runtimes.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Thu, 2 Mar 2006 14:41:47 +0000 (15:41 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 2 Mar 2006 14:41:47 +0000 (14:41 +0000)
* gcc.dg/single-precision-constant.c: Tweak for non-C99 runtimes.

From-SVN: r111638

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/single-precision-constant.c

index 5ccb65c500357b91cc112bb5fa3dfae624b02628..f53333bf61f875e4df57baa686cd565791b43991 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * gcc.dg/single-precision-constant.c: Tweak for non-C99 runtimes.
+
 2006-03-01  Mike Stump  <mrs@apple.com>
 
        * g++.dg/abi/key2.C: Add.
index 877e4d74d67b60bf7671f8cc89612e4865c20de5..e95eb39618ec4fd672f3aec686eb80be3024f35c 100644 (file)
@@ -6,13 +6,17 @@
 #include <math.h>
 #include <float.h>
 
+#include "builtins-config.h"
+
 int main (void)
 {
   int result = 0;
   double local_DBL_MAX = DBL_MAX; 
   double local_DBL_MIN = DBL_MIN;
+#ifdef HAVE_C99_RUNTIME
   if (isinf (local_DBL_MAX))
     result |= 1;
+#endif
   if (local_DBL_MIN <= 0.0)
     result |= 1;
   return result;