summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-02 14:41:47 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-02 14:41:47 +0000
commitd5c557a568420526faa2ffdde3fa7e597f51849c (patch)
treeb53f892d504877ef2fb8d0792d5d3be8c1f5ed98 /gcc
parent430e8f9205b6a0d67f9ac63df17f94571f8de637 (diff)
downloadgcc-d5c557a568420526faa2ffdde3fa7e597f51849c.tar.gz
* gcc.dg/single-precision-constant.c: Tweak for non-C99 runtimes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111638 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/single-precision-constant.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5ccb65c5003..f53333bf61f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/single-precision-constant.c b/gcc/testsuite/gcc.dg/single-precision-constant.c
index 877e4d74d67..e95eb39618e 100644
--- a/gcc/testsuite/gcc.dg/single-precision-constant.c
+++ b/gcc/testsuite/gcc.dg/single-precision-constant.c
@@ -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;