xref: /illumos-gate/usr/src/tools/smatch/src/validation/linear/cast-volatile.c (revision 3cac7b0d73edf3f2674ad0f64d1fff3d2e59ae8c)
1 static int foo(volatile int *a, int v)
2 {
3 	*a = v;
4 	return *a;
5 }
6 
7 /*
8  * check-name: cast-volatile
9  * check-command: test-linearize -fdump-ir=linearize $file
10  *
11  * check-output-ignore
12  * check-output-excludes: sext\\.
13  * check-output-excludes: zext\\.
14  * check-output-excludes: trunc\\.
15  */
16