xref: /illumos-gate/usr/src/tools/smatch/src/validation/backend/shift-special.c (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1 long shift(long a, short b);
2 long shift(long a, short b)
3 {
4 	long r1 = a << b;
5 	long r2 = b << a;
6 
7 	return r1 + r2;
8 }
9 
10 /*
11  * check-name: shift-special
12  * check-command: sparsec -c $file -o tmp.o
13  */
14