1 /* { dg-do compile } */
2 /* { dg-require-effective-target inf } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
7 return __builtin_isnan((double)x
);
12 return __builtin_isnanf((float)x
);
17 return __builtin_isnanl((long double)x
);
20 /* { dg-final { scan-tree-dump-times "_isnan" 0 "optimized" } } */
21 /* { dg-final { scan-tree-dump-times " unord " 0 "optimized" } } */