aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/and-or-bf0.c
blob: a17ff82d37e8bdf6655c39f0c897bc81c41735fd (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
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-known-to-fail
 *
 * check-output-ignore
 * check-output-pattern(3): and\\.
 * check-output-pattern(2): or\\.
 */