xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/and-or-constant1.c (revision a61ed2ce7a86a4d6428f2a83eb4739fae945447e)
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