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