single-precision-constant.c: Tweak for non-C99 runtimes.
* gcc.dg/single-precision-constant.c: Tweak for non-C99 runtimes. From-SVN: r111638
This commit is contained in:
parent
c5dde55b61
commit
92cd5e4fe4
2 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue