aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/builtin_isdigit.c
blob: c1d3ea153ff199543749c450479e02fad41e0fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
_Bool isdigit(int c)
{
	return __builtin_isdigit(c) == (((unsigned) (c - '0')) <= 9);
}

/*
 * check-name: builtin_isdigit
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: 1
 */