hooks: add a warning to detect unimplemented hooks
[smatch.git] / validation / sm_math2.c
blobd9bd164306c2d4446ce4dc035bcd90cbca647c1d
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-u16max'
24 * check-output-end