xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/and-or-bf2.c (revision 5801b0f01c3c34499a929ed96164a5a68b470945)
1 struct s {
2 	char a:3;
3 	char b:3;
4 	char c:2;
5 };
6 
7 void foo(struct s *p)
8 {
9 	p->a = 1;
10 	p->b = 2;
11 	p->c = 3;
12 }
13 
14 /*
15  * check-name: and-or-bf2
16  * check-command: test-linearize -Wno-decl $file
17  *
18  * check-output-start
19 foo:
20 .L0:
21 	<entry-point>
22 	store.8     $209 -> 0[%arg1]
23 	ret
24 
25 
26  * check-output-end
27  */
28