xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/and-or-mask2.c (revision f52943a93040563107b95bccb9db87d9971ef47d)
1 int foo(int x, int y)
2 {
3 	return ((x & 0xffffff0f) | y) & 0xfff;
4 }
5 
6 /*
7  * check-name: and-or-mask2
8  * check-command: test-linearize -Wno-decl $file
9  *
10  * check-output-ignore
11  * check-output-contains: and\\..*\\$0xf0f
12  * check-output-excludes: and\\..*\\$0xffffff0f
13  */
14