unreachable code: don't warn about empty statements
[smatch.git] / validation / sm_math2.c
blob640dc90a38706f4f84dabbfe0d0c1fd00bde6849
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-65280'
24 * check-output-end