diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2006-03-02 15:41:47 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2006-03-02 14:41:47 +0000 |
commit | 92cd5e4fe4f67c15ed26b1e0a904185710a49a94 (patch) | |
tree | b53f892d504877ef2fb8d0792d5d3be8c1f5ed98 /gcc | |
parent | c5dde55b61d8bbbcedbf7562f8a403d2e9f06d45 (diff) | |
download | gcc-92cd5e4fe4f67c15ed26b1e0a904185710a49a94.zip gcc-92cd5e4fe4f67c15ed26b1e0a904185710a49a94.tar.gz gcc-92cd5e4fe4f67c15ed26b1e0a904185710a49a94.tar.bz2 |
single-precision-constant.c: Tweak for non-C99 runtimes.
* gcc.dg/single-precision-constant.c: Tweak for non-C99 runtimes.
From-SVN: r111638
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/single-precision-constant.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5ccb65c..f53333b 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 877e4d7..e95eb39 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; |