PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-math-float-1.c
blob36a73960266eb6b881a73c976a1319c7cffce5c0
1 /* { dg-do run { target *-*-solaris2.1[0-9]* } } */
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;