| 1 |
/* Test __builtin_nansd* functions. Test not requiring runtime |
| 2 |
exceptions support. */ |
| 3 |
/* { dg-options "" } */ |
| 4 |
|
| 5 |
volatile _Decimal32 d32 = __builtin_nansd32 (""); |
| 6 |
volatile _Decimal64 d64 = __builtin_nansd64 (""); |
| 7 |
volatile _Decimal128 d128 = __builtin_nansd128 (""); |
| 8 |
|
| 9 |
extern void abort (void); |
| 10 |
extern void exit (int); |
| 11 |
|
| 12 |
int |
| 13 |
main (void) |
| 14 |
{ |
| 15 |
if (!__builtin_isnan (d32)) |
| 16 |
abort (); |
| 17 |
if (!__builtin_isnan (d64)) |
| 18 |
abort (); |
| 19 |
if (!__builtin_isnan (d128)) |
| 20 |
abort (); |
| 21 |
exit (0); |
| 22 |
} |