aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/merge_bbe-adjust_phi.c
blob: 6a8ebb73a62dc346e44c8edf27cc43dcb514f3cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
extern int array[2];

static inline int stupid_select(int idx)
{
	if (idx)
		idx = 0;
	return array[idx];
}

int select(void)
{
	int d = stupid_select(-1);
	return d;
}

/*
 * check-name: merge_bbe-adjust_phi
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: phisrc\\.
 * check-output-excludes: phi\\.
 */