annotate gcc/testsuite/gcc.dg/c99-math-long-double-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do run { target *-*-solaris2.1[0-9]* } } */
kono
parents:
diff changeset
2 /* { dg-options "-std=c99 -O" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 #include <math.h>
kono
parents:
diff changeset
5 #include "c99-math.h"
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 int main(void)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 volatile long double nan = NAN;
kono
parents:
diff changeset
10 volatile long double inf = INFINITY;
kono
parents:
diff changeset
11 volatile long double huge = HUGE_VALL;
kono
parents:
diff changeset
12 volatile long double norm1 = __LDBL_MIN__;
kono
parents:
diff changeset
13 volatile long double norm2 = 1;
kono
parents:
diff changeset
14 volatile long double norm3 = __LDBL_MAX__;
kono
parents:
diff changeset
15 volatile long double sub = __LDBL_MIN__ / 2;
kono
parents:
diff changeset
16 volatile long double zero = 0.0l;
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 C99_MATH_TESTS (nan, inf, huge, norm1, norm2, norm3, sub, zero, /*neg=*/0)
kono
parents:
diff changeset
19 C99_MATH_TESTS (-nan, -inf, -huge, -norm1, -norm2, -norm3, -sub, -zero, /*neg=*/1)
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 return 0;
kono
parents:
diff changeset
22 }