6_5_2_2_01_builtin_nan.c (360B)
1 /* __builtin_nan / __builtin_nanf produce quiet NaNs (the expansion of 2 * <math.h>'s NAN). A NaN compares unequal to itself, so both self-comparisons 3 * are true. No sysroot needed. */ 4 int test_main(void) { 5 double n = __builtin_nan(""); 6 float nf = __builtin_nanf(""); 7 /* NaN != NaN must hold for both widths. */ 8 return (n != n && nf != nf) ? 42 : 0; 9 }