fnp(void)1*c85f09ccSJohn Levon void fnp(void)
2*c85f09ccSJohn Levon {
3*c85f09ccSJohn Levon 	int a;
4*c85f09ccSJohn Levon 	for (;;)
5*c85f09ccSJohn Levon 		a += 1;
6*c85f09ccSJohn Levon }
7*c85f09ccSJohn Levon 
fnm(void)8*c85f09ccSJohn Levon void fnm(void)
9*c85f09ccSJohn Levon {
10*c85f09ccSJohn Levon 	int a;
11*c85f09ccSJohn Levon 	for (;;)
12*c85f09ccSJohn Levon 		a -= 1;
13*c85f09ccSJohn Levon }
14*c85f09ccSJohn Levon 
fna(void)15*c85f09ccSJohn Levon void fna(void)
16*c85f09ccSJohn Levon {
17*c85f09ccSJohn Levon 	int a;
18*c85f09ccSJohn Levon 	for (;;)
19*c85f09ccSJohn Levon 		a &= 1;
20*c85f09ccSJohn Levon }
21*c85f09ccSJohn Levon 
fno(void)22*c85f09ccSJohn Levon void fno(void)
23*c85f09ccSJohn Levon {
24*c85f09ccSJohn Levon 	int a;
25*c85f09ccSJohn Levon 	for (;;)
26*c85f09ccSJohn Levon 		a |= 1;
27*c85f09ccSJohn Levon }
28*c85f09ccSJohn Levon 
fnx(void)29*c85f09ccSJohn Levon void fnx(void)
30*c85f09ccSJohn Levon {
31*c85f09ccSJohn Levon 	int a;
32*c85f09ccSJohn Levon 	for (;;)
33*c85f09ccSJohn Levon 		a ^= 1;
34*c85f09ccSJohn Levon }
35*c85f09ccSJohn Levon 
fnl(void)36*c85f09ccSJohn Levon void fnl(void)
37*c85f09ccSJohn Levon {
38*c85f09ccSJohn Levon 	int a;
39*c85f09ccSJohn Levon 	for (;;)
40*c85f09ccSJohn Levon 		a <<= 1;
41*c85f09ccSJohn Levon }
42*c85f09ccSJohn Levon 
fnr(void)43*c85f09ccSJohn Levon void fnr(void)
44*c85f09ccSJohn Levon {
45*c85f09ccSJohn Levon 	int a;
46*c85f09ccSJohn Levon 	for (;;)
47*c85f09ccSJohn Levon 		a >>= 1;
48*c85f09ccSJohn Levon }
49*c85f09ccSJohn Levon 
50*c85f09ccSJohn Levon /*
51*c85f09ccSJohn Levon  * check-name: infinite loop 01
52*c85f09ccSJohn Levon  * check-command: sparse -Wno-decl $file
53*c85f09ccSJohn Levon  * check-timeout:
54*c85f09ccSJohn Levon  */
55