aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/mask1-setne0.c
blob: 1e599dc80332027cfb467a4eded00e3ebee997c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
struct s {
	unsigned i:1;
};

int foo(struct s x)
{
	unsigned int i = x.i;

	if (i == 0)
		return 1;
	else if (i == 1)
		return 1;
	return 0;
}

/*
 * check-name: mask1-setne0
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-start
foo:
.L0:
	<entry-point>
	ret.32      $1


 * check-output-end
 */