xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/volatile-bitfield.c (revision 58e78d166bd2b5a9dda31250b8e8bad7c7548c0e)
1 struct s {
2 	int f:3;
3 };
4 
5 void foo(volatile struct s *p)
6 {
7 	p->f;
8 }
9 
10 /*
11  * check-name: volatile-bitfield
12  * check-command: test-linearize -Wno-decl $file
13  *
14  * check-output-ignore
15  * check-output-contains: load\\.
16  */
17