xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/bitfield-store-loads.c (revision 1e56f352c1c208679012bca47d552e127f5b1072)
1 struct s {
2 	char :2;
3 	char f:3;
4 };
5 
6 int foo(struct s s, int a)
7 {
8 	s.f = a;
9 	return s.f;
10 }
11 
12 /*
13  * check-name: bitfield-store-load signed
14  * check-command: test-linearize -Wno-decl $file
15  *
16  * check-output-ignore
17  * check-output-excludes: shl\\.
18  * check-output-excludes: lsr\\.
19  * check-output-excludes: or\\.
20  * check-output-excludes: [sz]ext\\.
21  * check-output-excludes: trunc\\.
22  * check-output-pattern(1): and\\.
23  */
24