xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/and-or-bf1.c (revision a89c0811c892ec231725fe10817ef95dda813c06)
1 struct s {
2 	int  :2;
3 	int f:3;
4 };
5 
6 void foo(struct s *d, const struct s *s, int a)
7 {
8 	d->f = s->f | a;
9 }
10 
11 /*
12  * check-name: and-or-bf1
13  * check-command: test-linearize -Wno-decl $file
14  *
15  * check-output-ignore
16  * check-output-pattern(2): and\\.
17  * check-output-pattern(2): or\\.
18  */
19