xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/and-or-bfu.c (revision 241c90a06e8d1708235651863df515a2d522a03a)
1 struct u {
2 	unsigned int  :2;
3 	unsigned int f:3;
4 };
5 
6 int bfu(struct u s, int a)
7 {
8 	s.f = a;
9 	return s.f;
10 }
11 
12 /*
13  * check-name: and-or-bfu
14  * check-command: test-linearize -Wno-decl $file
15  *
16  * check-output-ignore
17  * check-output-pattern(1): and\\.
18  * check-output-excludes: or\\.
19  * check-output-excludes: shl\\.
20  * check-output-excludes: lsr\\.
21  */
22