Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-math-float-1.c
blob8654e767210ee12f326f13caab1973cb75113ca4
1 /* { dg-do run { target *-*-solaris2* } } */
2 /* { dg-options "-std=c99 -O" } */
4 #include <math.h>
5 #include "c99-math.h"
7 int main(void)
9 volatile float nan = NAN;
10 volatile float inf = INFINITY;
11 volatile float huge = HUGE_VALF;
12 volatile float norm1 = __FLT_MIN__;
13 volatile float norm2 = 1;
14 volatile float norm3 = __FLT_MAX__;
15 volatile float sub = __FLT_MIN__ / 2;
16 volatile float zero = 0.0f;
18 C99_MATH_TESTS (nan, inf, huge, norm1, norm2, norm3, sub, zero, /*neg=*/0)
19 C99_MATH_TESTS (-nan, -inf, -huge, -norm1, -norm2, -norm3, -sub, -zero, /*neg=*/1)
21 return 0;