1*c85f09ccSJohn Levon struct s {
2*c85f09ccSJohn Levon 	unsigned int u:1;
3*c85f09ccSJohn Levon };
4*c85f09ccSJohn Levon 
foo(struct s x)5*c85f09ccSJohn Levon unsigned int foo(struct s x)
6*c85f09ccSJohn Levon {
7*c85f09ccSJohn Levon 	if (x.u)
8*c85f09ccSJohn Levon 		return 1;
9*c85f09ccSJohn Levon 	else
10*c85f09ccSJohn Levon 		return 0;
11*c85f09ccSJohn Levon }
12*c85f09ccSJohn Levon 
13*c85f09ccSJohn Levon /*
14*c85f09ccSJohn Levon  * check-name: trunc-setne0
15*c85f09ccSJohn Levon  * check-command: test-linearize -Wno-decl $file
16*c85f09ccSJohn Levon  *
17*c85f09ccSJohn Levon  * check-output-ignore
18*c85f09ccSJohn Levon  * check-output-contains: and\\.
19*c85f09ccSJohn Levon  * check-output-excludes: trunc\\.
20*c85f09ccSJohn Levon  */
21