xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/volatile-bitfield.c (revision f52943a93040563107b95bccb9db87d9971ef47d)
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