aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/and-or-bf0.c
blob: cfaff4f20d9a10e67fe7931f0e404ff48c070b8e (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
struct s {
	int f:3;
};

void foo(struct s *p, int a)
{
	p->f = 1;
	p->f = a;
}

void bar(struct s *p, int a)
{
	p->f = a;
	p->f = 1;
}

/*
 * check-name: and-or-bf0
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-pattern(3): and\\.
 * check-output-pattern(2): or\\.
 */