extra: fix a bug in how pointers are set inside called functions
[smatch.git] / validation / sm_propagate.c
blob8f9683e711fe58d879629eab1e0ceee79e0ae5f3
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