aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/expand/builtin_isnan.c
blob: 07c7e5e545cfcf5b5bc0c261bc88b9e76492b896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int test(void)
{
	if (!__builtin_isnan(__builtin_nanf("0")))
		return 0;
	if (!__builtin_isnan(__builtin_nan("0")))
		return 0;
	if (!__builtin_isnan(__builtin_nanl("0")))
		return 0;

	return 1;
}

/*
 * check-name: builtin_isnan expand
 * check-command: test-linearize -Wno-decl $file
 * check-known-to-fail
 *
 * check-output-ignore
 * check-output-contains: ret\\..*\\$1
 */