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