| 8 | #include <stdio.h> |
| 9 | |
| 10 | int IsNaN(double x) { |
| 11 | int rc; /* The value return */ |
| 12 | volatile double y = x; |
| 13 | volatile double z = y; |
| 14 | rc = (y != z); |
| 15 | return rc; |
| 16 | } |
| 17 | |
| 18 | int main() { |
| 19 | double tests[] = {1.0, 3.333, 1.0 / 0.0, 0.0 / 0.0, -1.0 / 0.0, |