1 /* { dg-do run { target *-*-solaris2* } } */
2 /* { dg-options "-std=c99 -O" } */
3
4 #include <math.h>
5 #include "c99-math.h"
6
main(void)7 int main(void)
8 {
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;
17
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)
20
21 return 0;
22 }
23