db/fixup_kernel.sh: hack handling of _parse_integer()
[smatch.git] / validation / sm_select5.c
blobcce93b30c2bd4599349fc9126a1c19ad9c87db1a
1 #include "check_debug.h"
3 int load_sig(unsigned long sig)
5 return sig < 4 ? 0 : -12;
8 int a;
9 void test(void)
11 int ret;
13 ret = load_sig(a);
14 if (ret) {
15 __smatch_implied(ret);
16 __smatch_implied(a);
17 } else {
18 __smatch_implied(a);
23 * check-name: smatch select #5
24 * check-command: smatch -I.. sm_select5.c
26 * check-output-start
27 sm_select5.c:15 test() implied: ret = '(-12)'
28 sm_select5.c:16 test() implied: a = 's32min-s32max'
29 sm_select5.c:18 test() implied: a = '0-3'
30 * check-output-end