math: improve how get_absolute_min/max() work
[smatch.git] / validation / sm_propagate.c
blobf07d6f4211eedc10ab0268f0b4d495ef44a5d1e2
1 #include "check_debug.h"
3 int frob();
5 int func(int *p)
7 int ret;
9 ret = frob();
10 if (ret < 0)
11 return -1;
12 return 0;
15 * check-name: Smatch propagate return codes
16 * check-command: smatch -p=kernel -I.. sm_propagate.c
18 * check-output-start
19 sm_propagate.c:11 func() info: why not propagate 'ret' from frob() instead of -1?
20 * check-output-end