Commit f0f4cb1b by Michael Meissner Committed by Michael Meissner

Add gcc.c-torture/execute/ieee/hugeval.c

From-SVN: r35184
parent 05298dea
2000-07-21 Michael Meissner <meissner@redhat.com>
* gcc.c-torture/execute/ieee/hugeval.c (main): New test.
2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
* g++.old-deja/g++.brendan/crash16.C,
......
#include <math.h>
static const double zero = 0.0;
static const double pone = 1.0;
static const double none = -1.0;
static const double pinf = 1.0 / 0.0;
static const double ninf = -1.0 / 0.0;
int
main ()
{
if (pinf != pone/zero)
abort ();
if (ninf != none/zero)
abort ();
#ifdef HUGE_VAL
if (HUGE_VAL != pinf)
abort ();
if (-HUGE_VAL != ninf)
abort ();
#endif
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment