kernel: fix a type bug handling err_cast()
[smatch.git] / validation / infinite-loop01.c
blob521cfb4d4e39322e3d7dee76b3bfecdb4c8f8741
1 void fnp(void)
3 int a;
4 for (;;)
5 a += 1;
8 void fnm(void)
10 int a;
11 for (;;)
12 a -= 1;
15 void fna(void)
17 int a;
18 for (;;)
19 a &= 1;
22 void fno(void)
24 int a;
25 for (;;)
26 a |= 1;
29 void fnx(void)
31 int a;
32 for (;;)
33 a ^= 1;
36 void fnl(void)
38 int a;
39 for (;;)
40 a <<= 1;
43 void fnr(void)
45 int a;
46 for (;;)
47 a >>= 1;
51 * check-name: infinite loop 01
52 * check-command: sparse -Wno-decl $file
53 * check-timeout: