xref: /illumos-gate/usr/src/tools/smatch/src/validation/expand/builtin_isnan.c (revision 63f91fbc3c024870d86dc3332a4a0080fb29bc40)
1 int test(void)
2 {
3 	if (!__builtin_isnan(__builtin_nanf("0")))
4 		return 0;
5 	if (!__builtin_isnan(__builtin_nan("0")))
6 		return 0;
7 	if (!__builtin_isnan(__builtin_nanl("0")))
8 		return 0;
9 
10 	return 1;
11 }
12 
13 /*
14  * check-name: builtin_isnan expand
15  * check-command: test-linearize -Wno-decl $file
16  * check-known-to-fail
17  *
18  * check-output-ignore
19  * check-output-contains: ret\\..*\\$1
20  */
21