OSDN Git Service

Call abort for runtime test, always return 0 from main.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / c99-math-long-double-1.c
1 /* { dg-do run { target *-*-solaris2.1[0-9]* } } */
2 /* { dg-options "-std=c99 -O" } */
3
4 #include <math.h>
5 #include "c99-math.h"
6
7 int main(void)
8 {
9   volatile long double nan = NAN;
10   volatile long double inf = INFINITY;
11   volatile long double huge = HUGE_VALL;
12   volatile long double norm1 = __LDBL_MIN__;
13   volatile long double norm2 = 1;
14   volatile long double norm3 = __LDBL_MAX__;
15   volatile long double sub = __LDBL_MIN__ / 2;
16   volatile long double zero = 0.0l;
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 }