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