xref: /illumos-gate/usr/src/tools/smatch/src/validation/expand/builtin_isnan.c (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
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