db/fixup_kernel.sh: update vfs_write() code
[smatch.git] / validation / sm_compare6.c
blob60b8da73f51b55f8f2d16b3278e8d2a314387ef6
1 #include "check_debug.h"
3 int returns_less(int x)
5 int y;
7 if (x > 10)
8 y = 10;
9 else
10 y = x;
12 __smatch_compare(x, y);
13 return y;
17 * check-name: smatch compare #6
18 * check-command: smatch -I.. sm_compare6.c
20 * check-output-start
21 sm_compare6.c:12 returns_less() x >= y
22 * check-output-end