diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-02 14:41:47 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-02 14:41:47 +0000 |
commit | d5c557a568420526faa2ffdde3fa7e597f51849c (patch) | |
tree | b53f892d504877ef2fb8d0792d5d3be8c1f5ed98 /gcc/testsuite/gcc.dg/single-precision-constant.c | |
parent | 430e8f9205b6a0d67f9ac63df17f94571f8de637 (diff) | |
download | gcc-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/testsuite/gcc.dg/single-precision-constant.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/single-precision-constant.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |