aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/unused-var.c
blob: ac3945820993b861bd4e9ec033df1b97017e3588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
int foo(int a)
{
	switch (a) {
		int u = 1;

	default:
		return a;
	}
}

/*
 * check-name: unused-var
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-start
foo:
.L0:
	<entry-point>
	ret.32      %arg1


 * check-output-end
 */