math: fix an out of memory issue
[smatch.git] / validation / sm_math2.c
blob61e60b72c3f763f328a282510e349714fef9bdd6
1 #include "check_debug.h"
3 unsigned char buf[2];
5 void test(void)
7 int a = buf[1];
8 int b = buf[0] << 8;
9 int c = (buf[0] << 8) | buf[1];
11 __smatch_implied(a);
12 __smatch_implied(b);
13 __smatch_implied(c);
17 * check-name: smatch math #2
18 * check-command: smatch -I.. sm_math2.c
20 * check-output-start
21 sm_math2.c:11 test() implied: a = '0-255'
22 sm_math2.c:12 test() implied: b = '0,256-65280'
23 sm_math2.c:13 test() implied: c = '0-65535'
24 * check-output-end